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 php explain how php works?
What are the main error types in php?
What are php variables?
What does == mean in php?
What is php form validation?
What backslash character will match whitespace?
Write a program to get lcm of two numbers using php?
Explain what are the two main string operators?
How can we connect to a mysql database from a php script?
Is php an object or array?
Why is node js better than php?
What is the use of print_r function in php?
What are the characteristics of php variables?
How to pass variables by references?
What is php resource type?