Posted by john.d.mann@sbcglobal.net on 01/09/06 06:57
lwoods wrote:
> In PHP you can do this:
>
> $x="test";
> $y=$x{2};
> echo $y;
>
> ....will display "s".
>
> Where in the PHP doc is this type of behavior for "curly brackets" defined?
>
> TIA,
>
> Larry Woods
>
>
Try:
http://www.php.net/manual/en/language.types.string.php
Search for: "Complex (curly) syntax", it's about 1/4 of the way into the
page.
Navigation:
[Reply to this message]
|