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
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
Why use static methods php?
What is x+ mode in fopen() used for?
How to upload file in php?
How to access standard error stream in PHP?
how to detect a mobile device using php
How can you declare a constant variable in php?
What are Routines?
What is a persistence cookie?
What is foreach loop in php?
How do you remove duplicates from an array?
What does explode do in php?
How arrays are passed through arguments?
What is the difference between Split and Explode in PHP?
What are the advantages of triggers in php?