What Will Be The Output Of The Following Php Codep Pre Langphp #148
What will be the output of the following PHP code?</p> <pre><code class="language-php" line="1"> <?php $text = "this is\tsome text that\nwe might like to parse."; print_r(split("[\n\t]",$text)); ?> </code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs107 PHP: Hypertext Preprocessor.
It can also be found in
gs gs107 Strings and Regular Expressions - PHP Strings & Regular Expressions - Quiz No.1.
What will be the output of the following PHP code?
<?php $text = "this is\tsome text that\nwe might like to parse."; print_r(split("[\n\t]",$text)); ?>
this is some text that we might like to parse.
Array ( [0] => some text that [1] => we might like to parse. )
Array ( [0] => this is [1] => some text that [2] => we might like to parse. )
[0] => this is [1] => some text that [2] => we might like to parse.