@@ -339,7 +339,8 @@ The methods provided by the parent classes that are available are:
339
339
found `here <https://www.php.net/manual/en/filter.filters.php >`__.
340
340
:param int $flags: Flags to apply. A list of flags can be found
341
341
`here <https://www.php.net/manual/en/filter.filters.flags.php >`__.
342
- :returns: $_POST if no parameters supplied, otherwise the POST value if found, or null if not
342
+ :returns: $_POST and $_GET combined if no parameters specified (prefer POST value on conflict),
343
+ otherwise looks for POST value, if nothing found looks for GET value, if no value found returns null
343
344
:rtype: mixed|null
344
345
345
346
This method works pretty much the same way as ``getPost() `` and ``getGet() ``, only combined.
@@ -348,22 +349,29 @@ The methods provided by the parent classes that are available are:
348
349
349
350
.. literalinclude :: incomingrequest/032.php
350
351
352
+ If no index is specified, it will return both POST and GET streams combined.
353
+ Although POST data will be preferred in case of name conflict.
354
+
351
355
.. php :method :: getGetPost([$index = null[, $filter = null[, $flags = null]]])
352
356
353
357
:param string $index: The name of the variable/key to look for.
354
358
:param int $filter: The type of filter to apply. A list of filters can be
355
359
found `here <https://www.php.net/manual/en/filter.filters.php >`__.
356
360
:param int $flags: Flags to apply. A list of flags can be found
357
361
`here <https://www.php.net/manual/en/filter.filters.flags.php >`__.
358
- :returns: $_POST if no parameters supplied, otherwise the POST value if found, or null if not
362
+ :returns: $_GET and $_POST combined if no parameters specified (prefer GET value on conflict),
363
+ otherwise looks for GET value, if nothing found looks for POST value, if no value found returns null
359
364
:rtype: mixed|null
360
365
361
366
This method works pretty much the same way as ``getPost() `` and ``getGet() ``, only combined.
362
- It will search through both POST and GET streams for data, looking first in GET, and
367
+ It will search through both GET and POST streams for data, looking first in GET, and
363
368
then in POST:
364
369
365
370
.. literalinclude :: incomingrequest/033.php
366
371
372
+ If no index is specified, it will return both GET and POST streams combined.
373
+ Although GET data will be preferred in case of name conflict.
374
+
367
375
.. php :method :: getCookie([$index = null[, $filter = null[, $flags = null]]])
368
376
:noindex:
369
377
0 commit comments