Q:

What will be the output of the following PHP code?

0

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));
    ?>

  1. this is some text that we might like to parse.
  2. Array ( [0] => some text that [1] => we might like to parse. )
  3. Array ( [0] => this is [1] => some text that [2] => we might like to parse. )
  4. [0] => this is [1] => some text that [2] => we might like to parse.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (d).[0] => this is [1] => some text that [2] => we might like to parse.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now