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

Explain about PHP filter and why it should be used?

559


What is a substring in php?

575


How to access a specific character in a string?

502


What is the best practice for running mysql queries in php? Consider the risk of sql injection.

558


Is php developer in demand?

510






What does the arrow mean in php?

534


Explain the difference between $message and $$message?

559


Do while loops php?

515


How could I install codeignitor ?

1745


What should be the length of variable for SHA256?

533


For image work which library is used in php?

533


What is the name of scripting engine in php?

686


Where are cookies stored php?

507


How many keywords are there in php?

622


Distinguish between urlencode and urldecode?

557