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
Explain different sorting function in php?
What is x+ mode in fopen() used for?
What is htaccess in php?
Which will start a session?
What is $_session in php?
What is a php tag?
What are the method available in form submitting?
Explain Constant in Class?
I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?
How escape single quotes php?
What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?
What is php full form?
What is final class and final method?
Is server side a session?
What is an object in php?