A little dab'll do ya
Code Snippets
PHP Array Contains
Check if value is in array and outputs Yes or No
<?php
$names = array( 'Bob', 'Jim', 'Mark' );
echo 'In Array? ';
if (in_array(‘foo’, $names))
echo 'Yes';
else
echo 'No';
?>Check if value is in array and outputs Yes or No
<?php
$names = array( 'Bob', 'Jim', 'Mark' );
echo 'In Array? ';
if (in_array(‘foo’, $names))
echo 'Yes';
else
echo 'No';
?>
alert(“wat?”);
Nice! Exactly what I was looking for.
I found it helpful.
Thanks!
Tks man! I was looking for it!