How can we extract string ?allinterview.com ? from a string
?http://info@allinterview.com? using regular expression of PHP?
Answer Posted / raj
$text = "http://info@allinterview.com";
preg_match('|.*@([^?]*)|', $text, $output);
echo $output[1];
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Where is session id stored?
What is session expiry?
What is include in php?
How to convert numbers to strings in php?
How is it possible to know the number of rows returned in result set?
What is the major php security hole? How to avoid?
Is session a cookie?
Explain how to run the interactive php shell from the command line interface?
What is mysql_fetch_object?
What is $_ get?
What are the common uses of php?
What is final class and final method?
How does php isset work?
What is stripslashes php?
How does php strcmp work?