Home > Backend Development > PHP Tutorial > is_array( )函数?

is_array( )函数?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 14:23:28
Original
1181 people have browsed it

http://docs.php.net/manual/zh/function.in-array.php


<?      $x=array(1,2,3);      $y=is_array(1,$x);      echo $y;?>
Copy after login


php程序,为什么出错?


回复讨论(解决方案)

<?php
Copy after login
Copy after login


<?php
Copy after login
Copy after login


  <?   ?>
Copy after login


<?php?>
Copy after login


两者没什么区别。

兄弟 是  in_array 不是is_array。

兄弟 是  in_array 不是is_array。

嗯,还没有发现这个....

is_array()只有一个形参的,多看看manual

到底是要判断是数组呢 还是判断是否在数组内呢....
如果是 is_array

bool is_array ( mixed $var )

因为你写错了  is_array()  in_array()  自己百度下

一:is_array() 只有一个参数。
二:你是不是禁用了短标签?如果是,用完整的: <?php ...?>

因为你写错了  is_array()  in_array()  自己百度下
++1

$x=array(1,2,3);
$y=in_array(1,$x);
echo $y;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template