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

Answer Posted / pinky

if (ereg("allinterview.com",
"http://info@allinterview.com", $temp) )

print $temp[0];

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by ‘passing the variable by value and reference' in php?

532


What is the use of mysql_fetch_assoc in php?

516


What is sticky form in php?

501


Do csrf tokens expire?

504


What is binary safe function in php?

578






How does php serialize work?

516


What is var_dump function in php?

540


How to update memcached when you make changes to php?

542


What is php static function?

539


What are the functions to be used to get the image's properties (size, width and height)?

547


What is the latest version of php?

536


What is the purpose of the '.myi' file extension? What do thes file contain?

525


Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?

563


How to convert the first character to upper case?

518


What is the use of limit in mysql?

515