php basic array question -
I have a problem getting the value of the last entry ID from the theory. I did a few research and I came to know that the following works: Should:
// save store store now = new store (); $ Store- & gt; Url = $ this- & gt; Form_validation- & gt; Set_ ('website'); $ Store & gt; Save (); $ Store_id = $ store- & gt; Identifier (); Echo print_r ($ store-> identifier ());
return
array ([id] => 1000034)
How can I just pull the value (1000034) Out of the array and set it in a variable which I can use elsewhere?
Your $ store_id
is an associative array with the same name as "id" Value is applied to:
$ id = $ store_id ['id'];