Q. What will be the output of the following PHP code?
Code:
<?php $str = "Hello, IncludeHelp"; $pattern = "/includehelp/i"; echo preg_match($pattern, $str); ?>
β
Correct Answer: (A)
0
<?php $str = "Hello, IncludeHelp"; $pattern = "/includehelp/i"; echo preg_match($pattern, $str); ?>
You must be Logged in to update hint/solution