git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@91418 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jesus M. Castagnetto 2002-08-09 23:14:01 +00:00
parent 80c9e16666
commit ea51f2f62e

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.56 -->
<refentry id="function.in-array">
<refnamediv>
@ -96,17 +96,17 @@ if (in_array(1.13, $a, TRUE))
$a = array(array('p', 'h'), array('p', 'r'), 'o');
if (in_array(array ('p', 'h'), $a))
echo "'ph' is found\n";
echo "'ph' was found\n";
if (in_array(array ('f', 'i'), $a))
echo "'fi' is not found\n";
echo "'fi' was found\n";
if (in_array('o', $a))
echo "'o' is found\n";
echo "'o' was found\n";
?>
// This will output:
'ph' is found
'o' is found
'ph' was found
'o' was found
]]>
</programlisting>
</example>