NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
code completin within foreach


Joined: 07 Apr 2004
Posts: 34
Reply with quote
I am not sure if this is possible.

What I have is a situation where I return lots of data objects in an array.
Then to get the information out of hte objects I have to do 1 of 2 things.

1. do a for loop and then use the following
Code:
$arrayObject[ $loopNumber ]->Variable or function


2. use a foreach loop and do the following
Code:
foreach( $multipleObject as $newObject ){
             $newObject->variable or Function


With both methods I am unable to use the code completion.

Thanks in advance

Barry
View user's profileFind all posts by neoblast007Send private messageMSN Messenger
code completin within foreach
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic