note 104713 added to function.in-array
| From: | AgustnGonzlez at osu1 dot php dot net | Date: | Sat, 02 Jul 2011 06:34:00 +0000 |
| Subject: | note 104713 added to function.in-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181160@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 186.109.97.6
----
Manual Page -- http://www.php.net/manual/en/function.in-array.php
Edit -- https://master.php.net/note/edit/104713
Del: integrated -- https://master.php.net/note/delete/104713/integrated
Del: useless -- https://master.php.net/note/delete/104713/useless
Del: bad code -- https://master.php.net/note/delete/104713/bad+code
Del: spam -- https://master.php.net/note/delete/104713/spam
Del: non-english -- https://master.php.net/note/delete/104713/non-english
Del: in docs -- https://master.php.net/note/delete/104713/in+docs
Del: other reasons-- https://master.php.net/note/delete/104713
Reject -- https://master.php.net/note/reject/104713
Search -- https://master.php.net/manage/user-notes.php