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


Please Help Members By Posting Answers For Below Questions

How to take a substring from a given string in php?

511


How many different types of messages available in php?

535


What percentage of websites use php?

496


What is different between software and app

1221


why did u want to leave your past organisation?

1640






Explain what does $_server means?

563


CWD is a type of shell variable. State Whether True or False?

562


What are the benefits of using queries?

502


How can we get the error when there is a problem to upload a file?

515


What is printf in php?

516


What was the old name of php?

946


What is T_PAAMAYIM_NEKUDOTAYIM?

664


Explain about the $_GET variable of PHP?

571


Are objects passed by value or by reference?

539


Is rent a variable cost?

546