How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / gaurav
you can use array split
$site_arr=split("@", "http://info@abc.com");
$site_name=$site_arr[1];
$site_name will have the value abc.com.
Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
What is difference between python and php?
What is json php?
What is env in laravel?
How should a model be structured in mvc?
How does php server work?
Does php have future?
Php says that an array is an ordered map. But how the values are ordered in an array?
What are the advantages of stored procedures?
What is the best practice for running mysql queries in php? Consider the risk of sql injection.
Explain the difference b/w static and dynamic websites?
What is session expiry?
Can php run on windows server?
What is variable declaration?
How to create a mysql connection?
Tell me what does $_env means?