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