Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'
Answer Posted / bipin
<?php
$string = 'xxx@yyy.com';
list($firstString,$secondString) = split('@',$string);
echo $firstString;
?>
| Is This Answer Correct ? | 9 Yes | 7 No |
Post New Answer View All Answers
What is the use of limit in mysql?
Explain the changes in php versions?
What are html entities?
Why do we use in php?
How can we submit a form without using submit buttons?
How can I increase my website session?
What is foreach loop in php?
What is the main difference between require() and require_once()?
What is the best php version for wordpress?
What is prepare in php?
What language is similar to php?
What is parent __construct ();?
How can we determine whether a php variable is an instantiated object of a certain class?
How we can declare variable in php?
How does php work with apache?