My array looks like this:
$arValues = array( 345 => \"jhdrfr\", 534 => \"jhdrffr\", 673 => \"jhrffr\", 234 => \"jfrhfr\" );
How
This works fine for me...
$array = array('1','2','3','4');
reset($array);
$key = key($array);
$value = $array[$key];
unset($array[$key]);
var_dump($key, $value, $array, current($array));
Output:
int(0)
string(1) "1"
array(3) { [1]=> string(1) "2" [2]=> string(1) "3" [3]=> string(1) "4" }
string(1) "2"