How can we extract string ?allinterview.com ? from a string
?http://info@allinterview.com? using regular expression of PHP?
Answer Posted / pinky
if (ereg("allinterview.com",
"http://info@allinterview.com", $temp) )
print $temp[0];
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Is c similar to php?
How do I use isdigit function?
What's the difference between accessing a class method via -> and via ::?
What does namespace mean in php?
What is the use of trim function in php?
Explain how can php and javascript interact?
How do I run php?
Tell me when a conditional statement is ended with an endif?
How to create an empty array in php?
What type of language is php?
What is the expansion of LAMP?
What is difference between echo and print_r in php?
What are getters and setters and why are they important?
Why does php start with variables?
Can you give example for trait in php?