?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
$text = "this istsome text thatnwe might like to parse.";
print_r(split("[nt]",$text));
?>
<?php
$text = "this istsome text thatnwe might like to parse.";
print_r(split("[nt]",$text));
?>
Answer & Solution
Correct Answer:
Option
D
The split() function divides a string into various elements, with the boundaries of each element based on the occurrence of a defined pattern within the string.
Join the Discussion
Login to post a comment or share your explanation.
Login