Jump to content

Recommended Posts

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? 

Link to comment
https://forums.phpfreaks.com/topic/62811-unknown-array-problem/
Share on other sites

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.)

Link to comment
https://forums.phpfreaks.com/topic/62811-unknown-array-problem/#findComment-312685
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.