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


Please Help Members By Posting Answers For Below Questions

What is the use of explode() function?

795


How do you compare strings in java?

700


How are sessions maintained?

707


What is composer install?

782


What is serialization in php?

660


Tell me what is the meaning of a final class and a final method?

777


What are the string function in php?

712


What is the purpose of pear in php?

761


Why is php used for web development?

712


Can php run without apache?

719


Explain preg_Match and preg_replace?

735


How cookies are trported from browsers to servers?

743


What is the difference between get and post method in php?

676


Is php a float?

748


What is the basic syntax of Php?

822