NYCPHP Meetup

NYPHP.org

[nycphp-talk] highest key of an array

Ken Robinson kenrbnsn at rbnsn.com
Mon Sep 19 18:14:33 EDT 2005


At 05:45 PM 9/19/2005, Rahmin Pavlovic wrote:
>You can also use array() to create quasi-objects, stuff like:
>
>$user=array('firstname'=>'Bob', 'username'=>'bobbo23');
>
>$subscription=array();
>$subscription['basic']=array();
>$subscription['basic']['price']=50;

Yes, but the original question dealt with numerical indices, not 
associative ones.

Ken 




More information about the talk mailing list