Do in_array have a like function?
<p>I have an array of people that is registered as online in a html file. I am using this so that each can have an image assigned to them. But when checking to see if using name is already in use the in_array function return false and allow the script to continue. </p>

<pre><code>$user = "&lt; img src='default.jpg' /&gt;John";
$explode = array("&lt;img src='tress.jpg' /&gt;John");

if(in_array($user, $explode))
   {
   //show login script if user exists
   }
   else
    {
     //continue to script
     }
</code></pre>

<p>Now the reason this is not working is because the john in the array is not identical to the john in $user. Is there anyway of checking that the name exists in the array? When responding please explain.</p>
