|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-14 15:23 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 05:00:01 2025 UTC |
According to the doc : Variable parsing When a string is specified in double quotes or with heredoc, variables are parsed within it. Testcode : <html> <body> <a href="test.php?MyVar=PHP">Link</a> <br> <?php if($_GET['MyVar']) { echo "Simple test : $_GET['MyVar']"; } ?> </body> </html> When clicking on the link result : Link Simple test : So the $_GET['MyVar'] variable was not parsed within the string. Seems to me that this incorrect behaviour... Or there might be reason to explain this, but then it should be noted in the documentation...? Greetz, Nicolas