|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-01 06:58 UTC] derick@php.net
[2003-09-01 07:03 UTC] martin at lucas-smith dot co dot uk
[2003-09-01 07:04 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 09:00:01 2025 UTC |
Description: ------------ Is there some reason why a $_GET or other server variable cannot be included directly within a function declaration, as its default value? If using the reproduce code below I get a parse error: Parse error: parse error, unexpected T_VARIABLE in [scriptaddress] on line [linenumber] Reproduce code: --------------- function queryParameters ($queryString = $_GET['QUERY_STRING']) { # Do something with $queryString }