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 use of "enctype" attribute in a html form?
How to redirect https to http url through .htaccess?
What is the difference between characters 34 and x34?
What are the steps for the payment gateway processing?
How to check a key exist in an array?
What is the difference between null and empty?
In how many ways we can retrieve the data in the result set of mysql using php?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
What is php session_start() and session_destroy() function?
How to get the value of current session id?
Which is better python or php?
Do I need apache for php?
Do you know how to delete a file from the system?
Which php framework is in demand?
Is php case sensitive?