On Fri, Jul 16, 2010 at 9:47 AM, Stas Malyshev <smalys...@sugarcrm.com> wrote: > Hi! > >> $str = "abs"; >> var_dumo($str[1][0]); >> >> I think it's not a problem at all. >> "b" makes sense because "abs"[1] -> "b" and "b"[0] -> "b". > > Totally makes sense, but it'd be a bit strange that $str[1][0] works but > $str[1][0] = "a" does not. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >
Isn't this the same problem as the below example of the type juggling? "" == 0 // true "0" == 0 // true "0" == "" // false Tyrael -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php