How to write declared as function SplitEmailAddress($address)
<p>Whose argument will contain string data consisting of a valid email address. this function will take the email addres as the argument and return an array with two keys: user to the username part and domain for the domain part of the address</p>

<p>Example:</p>

<pre><code>$arr= SplitEmailAddress('myusername@website.xyz.com')

$arr['user'] should contain the string ----&gt; myusername

$arg['domain'] should contain the string ----&gt; website.example.com
</code></pre>
