Re: [PHP] Accessing an array of objects

2001-08-18 Thread Rasmus Lerdorf
> echo "$test[1]->variable"; Get rid of the quotes, they are useless and just confuse the parser. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP] Accessing an array of objects

2001-08-18 Thread Athas Nikolakakos
I can't seem to figure out the correct syntax of acessing an array of objects with creating a temp. variable... Is there a workaround for not creating it, or do I just need to deal with using $tempvar = $test[1]; $tempvar->variable? here is an example of code // Start Code Snipet: for ($i = 0;$i