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
How to declare an array in php?
What is the difference between explode and split?
Is empty in php?
What is trim codeigniter?
Tell me what does pear stands for?
Is php used anymore?
What is a helper function?
Explain what does $_server means?
How many keywords are there in php?
How long should a session last?
Differentiate between php5 and php7?
What is session in php w3schools?
What is the super method?
What is the purpose of using php?
Where php language is used?