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 interface in php?
What do you mean by core php?
how to track user logged out or not? when a user is idle?
Is empty in php?
What should be the length of variable for SHA256?
Which is better php or nodejs?
Which is true about the singleton design pattern?
What are computer variables?
How check variable is set or not in php?
Is php easier than javascript?
How to add comments in php?
How to strip whitespace (or other characters) from the beginning and end of a string?
Is php used anymore?
How to replace a substring in a given string in php?
What is use of preg_replace in php?