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 object-oriented methodology in php?
How would you determine the size of a file in php?
Is php strongly typed?
What does == mean in php?
Is php a mvc?
Explain what does the expression exception::__tostring means?
When sessions ends?
Php program to generate fibonacci series?
What does session start do in php?
Tell me what type of operation is needed when passing values through a form or an url?
What is use of header() function in php?
Why namespace is used in php?
What are arguments in php?
What is isset and unset in php?
Explain Type juggling?