How to get a substring from string through PHP?
<p>Hi want to change the displayed username like abcd@somedomain.com to only abcd.
so for this i should clip the part starting from @.</p>

<p>I can do this very easily through variablename.substring() function in Java or C# , but I m not aware with the syntax of PHP.
So help me do that .</p>

<p>Suppose i m having variable like .</p>

<pre><code>$username = "abcd@somedomain.com";
$username = some
</code></pre>

<p>string manipultion functiona should get called here ;
so that
echo $username; 
can results in abcd only.</p>
