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
Tell me what does the scope of variables means?
Can we override magic methods in php?
Why php language is used?
What is multidimensional array in php?
What is mysql_real_escape_string used for?
Which software is used to run php programs?
What is the use of php and mysql?
What is the phpstorm?
Give the case where we can use get and we can use post methods?
What are the php functions?
Is php a backend?
Will php die?
What is pdo classes?
What is session management php?
How to read one character from a file?