note 104713 deleted from function.in-array by danbrown
| From: | danbrown@php.net | Date: | Sat, 02 Jul 2011 14:50:36 +0000 |
| Subject: | note 104713 deleted from function.in-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181163@lists.php.net to get a copy of this message | ||
Note Submitter: Agustn Gonzlez
----
Hola señores.
Queria saber si se puede hacer esto con in_array.
<?php
$srr2 = "'uno','dos','tres'";
if (in_array("dos",array($srr2)))
{
echo "Match found";
}
else
{
echo "Match not found";
}
?>
Espero puedan ayudarme.
Envieme un e-mail a " aagustin.gonzalez@hotmail.com "
o pueden contestar aca.
MUCHAS GRACIAS.