note 53914 deleted from language.variables.scope by sean
| From: | sean@php.net | Date: | Fri, 17 Jun 2005 00:29:44 +0000 |
| Subject: | note 53914 deleted from language.variables.scope by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90561@lists.php.net to get a copy of this message | ||
Note Submitter: jameslee at cs dot nmt dot edu
----
In response to Andy Morris and dpk at dpk dot net:
The reason it prints the single "f" is because strings can be treated like arrays just
like in C/C++. The string 'bar' evaluates to integer 0 when being used as an index to the
string "frank", so you get the 0th character of the array.