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 ? | 23 Yes | 6 No |
Post New Answer View All Answers
Which are the best start and end tags to use?
Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?
What is an object in php?
Why php is used?
What is composer install?
How many types of functions are there in php?
What is the difference between die () and exit () in php?
Is empty array php?
What do you use php for?
Describe which programming language does php parallel to?
What is htaccess? Why do we use this and where?
What is the use of hooks?
What are php variables?
How to Pass JSON Data in a URL using CURL in PHP?
What is $this in php?