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 / supriya
$str1="info@abc.com";
$str1=explode("@",$str1);
print_r($str1);
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is the use of htmlentities in php?
How do you use bcrypt for hashing passwords in php?
What are encryption functions in php?
What are the advantages and disadvantages of cascade style sheets?
Which function can be used to exit from the script after displaying the error message?
Which function Returns the time of sunrise for a given day / location in PHP.
How do you identify independent and dependent variables in research?
How will you calculate days between two dates in PHP?
How to create an array in php?
How to check whether a number is prime or not?
Which is not a file-related function in php?
How to include variables in double-quoted strings?
How to get complete current page url in php?
What is abstract class in php?
What is the difference between the include() and require() functions?