|
Posted by gosha bine on 04/27/07 19:07
On 27.04.2007 21:01 yawnmoth wrote:
> <?php
> $var['a'] = 'test';
>
> echo isset($var['a']['b']) ? 'true' : 'false';
Since $var['a'] is string, php applies string indexing operator, which
converts its second argument to an integer. That is, $var['a']['b']
becomes $var['a'][0] and equals to "t", which is, of course, set.
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
[Back to original message]
|