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 form action php?
What is var_dump?
How to read a file in php?
Can age be a variable?
What is the difference between $var and $$var?
What does $_server means?
What is traits? How it is used in php?
What are the benefits of using queries?
How do you compare strings in java?
How to define a function with any number of arguments?
What is a collection in php?
What is super keyword in php?
What are the two most common ways to start and finish a php block of code?
What is polymorphism?
Distinguish between urlencode and urldecode?