Array question

From: Date: Thu, 15 Feb 2001 00:40:40 +0000
Subject: Array question
Groups: php.general 
Request: Send a blank email to php-general+get-39780@lists.php.net to get a copy of this message
Hi, How do I get the index,number of an array if reffering to an array via string? Ex: I have 100 arrays, and I want to know what # myarray["something"] is. I looked at Current, but how do I move the pointer to where "something" is in the array? Would this work: $null = myarray["something"]; $indexofsomething = current(); Thanks, Chris

« previous php.general (#39780) next »