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 uniqid php?
Explain what are the two main string operators?
What is the value for this auto incremented field user_pri_id?
How to access a specific character in a string using php?
What changes I have to do in php.ini file for file uploading?
Is laravel an oop?
How long does a php session last for?
Is it more secure to use cookies to trfer session ids?
Is php case sensitive?
What is the difference between core php and php?
How to pass variables by references?
How to turn on the session support?
When should you use a stored procedure?
What is difference between echo and print in php?
Is null empty php?