How can we extract string ‘abc.com ‘ from a string
info@abc.com" target="_blank">http://info@abc.com using
regular expression of php?
Answer Posted / simlu_irtt
$string1="info@abc.com";
$string2=split("@",$string1);
print_r($string2);
this code print the string as abc.com
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is the use of trim function in php?
What are psrs? Choose 1 and briefly describe it?
Suppose your zend engine supports the mode Then how can you configure your php zend engine to support Mode ?
What is the use of magic function in php?
What is phpsessid?
What is the importance of "method" attribute in a html form?
What is the function of string in c?
What language is php based on?
What is a static variable in php?
Is php a programming language?
How will you calculate days between two dates in PHP?
Tell me which programming language does php resemble to?
What is meant by MIME?
Tell me how to find the position of the first occurrence of a substring in a string?
How many data types are there in php?