9 lines
187 B
PHP
9 lines
187 B
PHP
<?php
|
|
$sub_string = 'rayy@';
|
|
$str = 'rayy@example.com';
|
|
if (substr($str, 0, strlen($sub_string)) == $sub_string)
|
|
{
|
|
$str = substr($str, strlen($sub_string));
|
|
}
|
|
echo $str."\n";
|
|
?>
|