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

Why is overriding runtime?

754


What is the method to execute a php script from the command line?

779


Why print_r is used in php?

730


What are the differences between require and include?

753


What is class extend in php?

750


What are php keywords?

719


Can you define an argument as a reference type?

739


How to check your php installation?

718


Do you know what's the difference between __sleep and __wakeup?

752


What is the content of /etc directory?

764


Which database is best for php?

744


Is php easier than node?

702


How does php isset work?

718


What is get and post method in php?

743


Where sessions stored in PHP?

735