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 final class and final method in php?
What is mvc in php?
What is the actually used php version?
How do I run a php script?
What are php magic quotes?
/temp is a type of filesystem directory. State Whether True or False?
What the limitation of header() function in php?
Explain me how to include a file to a php page?
How are variables declared in php?
Why does php start with variables?
How is session id stored in browser?
In how many ways we can retrieve the data in the result set of mysql using php?
What does $this do in php?
Is it more secure to use cookies to trfer session ids?
What is the use of $_request variable?