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

What types of MYSQL function available for affecting columns

761


Which is true about the singleton design pattern?

738


What is asort php?

731


What is php artisan serve?

709


What is php mean?

788


Distinguish between urlencode and urldecode?

739


What is fetch array in php?

834


Explain how to submit form without a submit button.

748


Does php have future?

763


How to set a page as a home page in a php based site?

722


Can php run on windows server?

752


Is php faster than python?

787


Tell me how to initiate a session in php?

763


What is return value in php?

714


What is list in PHP?

858