How can I do something like this in PHP
** Just came from perl background
$value['title'] = "blah"; $value['ten'] = "core"; echo $value['ten']; // Prints Core
How can I do this in php, Im lost in the array stuff, I need to call by name.
actually
-- $key = "title";
On that code why does $values[title] only work why cant we put variables to call refrence?
$value = array("title" => "blah", "ten" => "core");
echo $value["ten"];
Originally posted by iceraider How can I do this in php.
You can do it like this:
LOL