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