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
What is the difference between for and foreach loop in php?
Write a program to find a string is palindrome or not?
What should we do to be able to export data into an excel file?
Which software is used to run php programs?
What is the most common http method?
Write a program to get second highest number in an array using php?
How to change the principal password?
How to remove the new line character from the end of a text line?
What websites use php?
What is the use of post in php?
How failures in execution are handled with include() and require() functions?
What are psrs? Choose 1 and briefly describe it?
What is the use of strip_tags() method?
Tell me how do I check if a given variable is empty?
Does wordpress still use php?