Posted by Toby A Inkster on 07/15/07 14:24
Michael Fesser wrote:
> print $foo['bar'];
> print "hello $foo[bar]";
> print "hello {$foo['bar']}";
>
> All correct.
Correct, yes. But the middle example is unwise.
define('bar', 'baz');
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 24 days, 18:03.]
demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/06/28/demiblog-0.2.0/
[Back to original message]
|