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