<?php
$email="example@gmail.com";
echo "Domain: ". strstr($email,"@");
echo "<br>Username :". strstr($email,"@",true);
?>
NEXT PROGRAM :
<?php
$mobile ="+91723456789";
echo "<br>C Code :". substr($mobile,0,3);
echo "<br>M No :". substr($mobile,3);
?>
$email="example@gmail.com";
echo "Domain: ". strstr($email,"@");
echo "<br>Username :". strstr($email,"@",true);
?>
NEXT PROGRAM :
<?php
$mobile ="+91723456789";
echo "<br>C Code :". substr($mobile,0,3);
echo "<br>M No :". substr($mobile,3);
?>