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 name of the scripting engine that powers PHP?
What does the scope of variables means?
Explain type casting and type juggling.
Explain Type hinting in PHP?
How to store the uploaded file to the final location?
Explain what is the function file_get_contents() usefull for?
How to generate a character from an ascii value?
How to turn on the session support?
Explain the difference between $message and $$message?
How can we check the value of a given variable is a number?
What are form input html tags?
What is the use of array_count_values() in php?
Could we start a variable with number like $4name?
Can we embedded directly PHP code into XHTML document? State Whether True or False?
How to update memcached when you make changes to php?