What is the correct return type of strpos? Searching for the '@' char
<p>For example I have a string <code>I am @ the penthouse.</code></p>

<p>I need to know how to find the character "@" in php string and the position of the character.</p>

<p>I tried strpos but its not working.</p>

<p>Thanks for the help in advance.</p>

<p>EDIT:</p>

<p>I've been using this for get the character:</p>

<pre><code>$text = "I am @ the penthouse";

$pos = strrpos($text, '@');

if($pos == true)
{
    echo "yes";
}
</code></pre>
