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 / harsh
$string1="info@abc.com";
$string2=split("@",$string1);
print_r($string2);
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to include variables in double-quoted strings in php?
Which one is best framework for php?
Is java is better than php?
What is a base url?
What is memcache?
Tell me what's the difference between include and require?
How long is a php session valid?
Which php global variable is used for uploading a file?
How to find current date and time?
What are arguments in php?
CWD is a type of shell variable. State Whether True or False?
What is the method to register a variable into a session?
What is magic function in php?
What are the difference between array_keys() and array_key_exists() in php?
What is strlen function in php?