How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / sathya
Use this coding
$variablename="http://info@abc.com";
$u=explode("@",$variablename);
$u2=$u[1];
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
How does php serialize work?
How can we upload a file in php?
Which php global variable is used for uploading a file?
What function do we use to find length of string, and length of array?
What is needed to be able to use image function?
What are the functions of string?
What is difference between ksort() and usort() functions.
What is Type hinting in PHP?
What is the main difference between php 4 and php 5?
What is the purpose of basename() function in PHP?
What's the difference between using mysql_ functions and pdo?
What's the output of the ucwords function in this example?
What are escaping characters? Explain with an example?
What is a substring in php?
What are the correct and the most two common way to start and finish a PHP block of code?