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

How To Get the Uploaded File Information in the Receiving Script?

598


Is it difficult to learn php?

545


What are the functions for imap?

597


Tell me how is it possible to parse a configuration file?

513


Is numeric in php?

543






How can I prevent sql-injection in php?

598


What is the default session time in php?

539


Explain me what is the w3c?

577


Explain do you use composer? If yes, what benefits have you found in it?

554


How send email in php?

543


What is the use of print_r function in php?

523


What is php.ini & .htacess file?

538


What is varchar mysql?

584


What is php and sql?

540


What are the benefits of using php and mysql?

515