|
Posted by Jeff on June 20, 2008, 3:22 pm
Please log in for more thread options Captain Paralytic wrote:
My apologies...
>> Iván Sánchez Ortega wrote:
>>> Jeff wrote:
>>>> $array = array('one'=>'1','two'=array('more than one'=>'dimension'));
>>> $array = array('one'=>'1','two'=>array('more than one'=>'dimension'));
>> Yes, a typo. The actual code though is drawing from an unserialized
>> file, so I know the syntax php generated is corrected is correct. I also
>> checked the array just before it got returned and it looked fine.
>>
>> Are you saying that I can return an array that way?
>
> Yes, didn't you think of trying it?
I tried this in a function in a class, and sprinkled in some echos to
track the data to see where the problem was.
When I try the very same script now, it works. Perhaps I made some
other mistake... Unfortunately, it's not the craziest thing (not
programming though) that's happened today!
Jeff
>
> I find it a lot quicker to try simple things like this out instead of
> writing a post to a forum such as this.
>
|