How can we extract string ?allinterview.com ? from a string
?http://info@allinterview.com? using regular expression of PHP?

Answer Posted / jcb.chl

<?
$str = substr('http://info@allinterview.com?',12);
echo $str;
?>

output:

allinterview.com?

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is known as the father of php?

557


How can we pass the variable through the navigation between the pages?

535


Why should I store logs in a database rather than a file?

534


Explain PHP?

611


What is repository in php?

524






Is null empty php?

532


What are the array functions in php?

524


What is env in laravel?

537


How does html form submit work?

516


How to merge values of two arrays into a single array?

482


What are the advantages and disadvantages of cascade style sheets?

665


What are php variables?

515


What is symfony php?

526


Tell me what is use of in_array() function in php?

564


What is api used for?

483