How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / sameer joshi
You can do like $site_array=explod("@","http://info@abc.com");
$site_addr=$sitr_array[1];
$site_addr will get the value as abc.com
Is This Answer Correct ? | 13 Yes | 7 No |
Post New Answer View All Answers
Xplain is it possible to use com component in php?
Which is better mysql or sql?
How to submit form without a submit button.
How to set cookies?
What is interface? Why it is used?
What is php date function?
How to convert a character to an ascii value?
How to count all the lines of code in a directory and sub folder?
What is singleton class in php?
What is 'float' property in css?
What are the Formatting and Printing Strings available in PHP?
What are constructor and destructor in PHP?
What is the difference between the functions strstr() and stristr()?
How do you execute a php script from the command line?
What is implode() in php?