Tuyết Trinh Nguyễn
New member
What will be the output of the following PHP code?
A. this is some text that we might like to parse.
B. Array ( [0] => some text that [1] => we might like to parse. )
C. Array ( [0] => this is [1] => some text that [2] => we might like to parse. )
D. [0] => this is [1] => some text that [2] => we might like to parse.
Code:
<?php
$text = "this is\tsome text that\nwe might like to parse.";
print_r(split("[\n\t]",$text));
?>
B. Array ( [0] => some text that [1] => we might like to parse. )
C. Array ( [0] => this is [1] => some text that [2] => we might like to parse. )
D. [0] => this is [1] => some text that [2] => we might like to parse.