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
How do you use bcrypt for hashing passwords in php?
How long does a session last in php?
What is the tags in PHP is not a valid way to begin and end a PHP code block?
What are the disadvantages of php?
What is magic function in php?
Is numeric in php?
Which is correct about mysqli and pdo?
How do you count numbers in php?
What is php regular expression?
How many open modes available when a file open in PHP?
What does $this do in php?
What is php trait?
What is encapsulation in php?
How come the code works, but doesn’t for two-dimensional array of mine?
Is it more secure to use cookies to transfer session ids?