How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / nitesh kumar
you can use explode funciton
echo $site_array=end(explode("@","http://info@abc.com"));
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is a static method php?
Why do we use namespace in php?
How to list all values of submitted fields?
How to turn on the session support in php?
Explain mail function in PHP with syntax?
Is php coding easy?
What is warning – “cannot modify header information – headers already sent”?
What is an operator in php?
What is php dependency injection?
What is pdo classes?
Is php easier than node?
What is an example of a variable?
Where is session id stored?
where do we use htaccess?
What does pear stand for?