Jump to content

Array error Warning: current() [function.current]: Passed variable is not ...


MDanz

Recommended Posts

i get this error Warning: current() [function.current]: Passed variable is not an array or object..

 

for this

$lastblock = current( ${"s".$row} );
				print_r($lastblock);

 

when i change to this it works..

$lastblock = current( $s0 );
				print_r($lastblock);

 

The problem is i won't know the $row seeing as it is in a while loop.  Solution?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.