php pop one key code example Example: php array_pop with key print_r(array_slice(array("a" => "1", "b" => 2, "c" => 3), -1, 1));