![]() |
$ary['x']= array('a'=>'y')... VS $ary['x']['a']= y...
Hi,
What is difference/better between: PHP Code:
Thanks for help. |
Not a whole lot. The second is more typing I suppose.
|
the 2nd is more lines but in the memory they are the same
|
Thanks both ;).
Resolved. |
And readability, I suppose. It's a personal preference, but I prefer to format my arrays like so:
php Code:
|
| All times are GMT. The time now is 02:12 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0