|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-02-07 23:18 UTC] admin at kcfreepress dot com
Description: ------------ Quoted from the PHP Manual (CHM file version, generated: Sun Oct 05 02:13:52 2003) ---------- Example 2-7. Printing data from our form Hi <?php echo $_POST["name"]; ?>. You are <?php echo $_POST["age"]; ?> years old. ---------- In order to avoid parse errors, it seems like this should instead read: ---------- Example 2-7. Printing data from our form Hi <?php echo $_POST[name]; ?>. You are <?php echo $_POST[age]; ?> years old. ---------- Thanks! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
Using quotes only leads to parse errors in strings when not using curly braces, so "foo $array['bar']" would be incorrect, but that's the only case you don't use quotes. Using "foo {$array["bar"]}" would be correct again. See the manual page at http://php.net/types.string for further reference.