Hello, "PHP List" <[EMAIL PROTECTED]> wrote:
> For some reason my brain is not operating within normal parameters > this week. > > $myarray["test"] = "sd"; > echo $myarray[0]; > > Why will nothing echo? Do I somehow have to initialize indexing on > the array $myarray? > php says that $myarray is an array, but I can't access it with numeric > indexes. That's because your $myarray was set using strings... > I know if I do this: > $myarray = array("test"=>"sd"); > that I can now echo $myarray[0] and get the value of sd returned. Are you sure? Try it :) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php