Array & Object

  1. Can use foreach(){} to loop an object.
  2. Can use variable key:
    $key = 'name';
    echo $obj->{$key};

One thought on “Array & Object

  1. I really like what you guys are up too. Such clever work and exposure!
    Keep up the fantastic works guys I’ve incorporated you guys to my own blogroll.

Comments are closed.