Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'
Answer Posted / esorimer
preg_replace("/(.*)@(.*)/","\1",$string);
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is isset function in php?
How to send a cookie to the browser?
How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
How to get complete current page url in php?
What is the best php version for wordpress?
What is apache and php?
What is meant by pear in php? What is the purpose of it?
What is the difference between php and javascript?
Why sessions are used in php?
How to delete an element from an array?
How many functions are there in php?
What are the advantages and disadvantages of cascade style sheets?
What are the methods useful for method overloading?
What are html entities?
What are the 5 types of data?