note 79982 added to language.variables.external

From: Date: Fri, 21 Dec 2007 23:17:17 +0000
Subject: note 79982 added to language.variables.external
Groups: php.notes 
Request: Send a blank email to php-notes+get-133874@lists.php.net to get a copy of this message
[someone] on 04-Mar-2003 07:21 wrote: "...the dot (period, full stop) is not a valid character in a PHP variable name." That's not completely correct, consider this example: $GLOBALS['foo.bar'] = 'baz'; echo ${'foo.bar'}; This will output baz as expected. _____________________________________________ Its a really old post but I just wanted to point out... thats a key he is talking about - 'foo.bar' - not a variable, and a key can be a string or a number. ---- Server IP: 69.147.83.197 Probable Submitter: 201.240.164.189 ---- Manual Page -- http://www.php.net/manual/en/language.variables.external.php Edit -- https://master.php.net/note/edit/79982 Del: integrated -- https://master.php.net/note/delete/79982/integrated Del: useless -- https://master.php.net/note/delete/79982/useless Del: bad code -- https://master.php.net/note/delete/79982/bad+code Del: spam -- https://master.php.net/note/delete/79982/spam Del: non-english -- https://master.php.net/note/delete/79982/non-english Del: in docs -- https://master.php.net/note/delete/79982/in+docs Del: other reasons-- https://master.php.net/note/delete/79982 Reject -- https://master.php.net/note/reject/79982 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133874) next »