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
Name and explain five of the PHP error constants?
Explain the importance of the function htmlentities.
How to create an array from php string?
How should a model be structured in mvc?
What is isset and unset in php?
How can we encrypt the password using php?
When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?
What is mysql_fetch_object?
What is the importance of php?
Is jquery better than javascript?
Does jwt protect against csrf?
Which is the best web server?
Is array function in php?
What is mod_php?
Explain php parameterized functions.