Hey,
What is the best way to go about deleting array values by the key.
$tempArray = array ("test1", "test2", "test3");
I wanna delete the value "test2" from the array and I want to refer to it via its key (1).
Any ideas?
Thanks, -Travis
Indexed arrays, huh?
unset($tempArray[1]) will do it.
Then you'll have Array ( [0] => test1 [2] => test3 )