hey okay so lets say $word = [email protected]
can i make a new variable only everything upto the "@"
and another everything after?
( I.E. $one = abcdefg & $two = hijk.lmn )
thanks alot
hey okay so lets say $word = [email protected]
can i make a new variable only everything upto the "@"
and another everything after?
( I.E. $one = abcdefg & $two = hijk.lmn )
thanks alot
use explode
.
$word = '[email protected]';
$my_array = explode('@', $word);
echo $my_array[0]; // prints "abcdefg"
echo $my_array[1]; // prints "hijk.lmn"