Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array flip

$input = array("a" => 1, "b" => 1, "c" => 2);
$flipped = array_flip($input);

print_r($flipped);

# Output
Array
(
    [1] => b
    [2] => c
)
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #array #flip
ADD COMMENT
Topic
Name
7+6 =