• 实例首页
  • 自学教程
  • IT工具箱
xxxxxxxxxx
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>PHP array_flip() 实例 - 自学教程(runoops.com)</title>
6
</head>
7
<body>
8
​
9
<?php
10
$input = array("a" => 1, "b" => 1, "c" => 2);
11
$result=array_flip($input);
12
​
13
echo '<pre>';
14
print_r($result);
15
echo '</pre>';
16
?>
17
​
18
</body>
19
​
20
</html>