PHP ZCE mock test, interview preparation, daily lessons under chalk talk

Friday, February 24, 2012

Output of the following code?

What will be the output of the below code?

<?php
$qpt = 'Eat to live, but not live to eat';
echo preg_match("/^to/",$qpt);
?>


a)1
b)2
c)0
d)Null


Solution: c)0

No comments:

Post a Comment