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
<?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