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

/temp is a type of filesystem directory. State Whether True or False?

782


Write a program in php to reverse a number?

747


Does mysql need php?

702


How to write in a file in php?

743


What is a comment in php?

830


How to select a database in php?

812


How to set cookies in PHP?

826


What are form input html tags?

745


What is laravel php?

785


Tell me which programming language does php resemble to?

712


What is difference between md5 and SHA256?

729


How can you tell if a number is even or odd without using any condition or loop?

770


Explain briefly about a search-friendly site looks like?

706


What is the use of the function htmlentities?

854


Explain me soundex() and metaphone()?

738