vecho Posted August 1, 2007 Share Posted August 1, 2007 hi all, i am using php4 and trying to run a code that was writen in php5 through soap protocol. when i echo an output i see: $abstr[item] => Object. what is that "item", am i not supposed to see a number instead ($abstr[0] => Object)? this is why i am not getting any data out of the $abstr array. Any suggestions? p.s. is this because i am using an older php version? Quote Link to comment https://forums.phpfreaks.com/topic/62811-unknown-array-problem/ Share on other sites More sharing options...
mrjcfreak Posted August 1, 2007 Share Posted August 1, 2007 Um. PHP's arrays are a smudge of hashes and arrays- so you can have non-numerical indexes. your output is telling you that $abstr["item"] is an Object. Which I guess may or may not be a problem. I suspect you may have used $abstr["item"] instead of $abstr["$item"] If you have straight copied working code from one system to another and got this problem, I suspect your problem is more likely to be with the set up than the code- stuff like register globals being off in php.ini, or a different Pear.dll being used. Check any likely suspect functions in the php manual and it has the history (release version they were first introduced, major bhavioural changes etc.) Quote Link to comment https://forums.phpfreaks.com/topic/62811-unknown-array-problem/#findComment-312685 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.