实例首页
自学教程
IT工具箱
源代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>PHP array_search() 实例 - 自学教程(runoops.com)</title> </head> <body> <?php $a=array("a" => "5", "b" => 5, "c" => "5"); echo array_search(5,$a,true); ?> </body> </html>
运行结果: