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


Please Help Members By Posting Answers For Below Questions

What is ltrim?

507


Explain the changes in php versions?

530


What is use of count() function in php?

554


Explain the visibility of the property or method?

560


Can php run on windows server?

509






What are different types of Print Functions available in PHP?

520


What are the functions of string?

513


Explain mail function in PHP with syntax?

547


What is memcache?

532


What's the difference between using mysql_ functions and pdo?

512


How is it possible to set an infinite execution time for php script?

512


What are the differences between require and include?

561


Is php object oriented?

498


how can i develop forum code? any one pleale help me on this question

1508


How can we display information of a variable and readable by human with php?

557