A
Q. What will be the output of the following PHP code?
Code:
<?php
$str = "Hello, IncludeHelp";
$pattern = "/includehelp/i";
echo preg_match($pattern, $str);
?>
$str = "Hello, IncludeHelp";
$pattern = "/includehelp/i";
echo preg_match($pattern, $str);
?>
- Correct Answer - Option(A)
- Views: 26
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.