Question
<?php
$text = "this is\tsome text that\nwe might like to parse.";
print_r(split("[\n\t]",$text));
?>
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.
Posted under PHP
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the following PHP code?
Similar Questions
Discover Related MCQs
Q. POSIX stands for
View solution
Q. POSIX implementation was deprecated in which version of PHP?
View solution
Q. How many functions does PHP offer for searching strings using POSIX style regular expression?
View solution
Q. [:alpha:] can also be specified as..
View solution
Q. Which one of the following regular expression matches any string containing zero or one p?
View solution
Q. PHP has long supported two regular expression implementations known as _______ and _______
i) Perl
ii) PEAR
iii) Pearl
iv) POSIX
View solution
Q. Operator that is used for heredoc syntax
View solution
Q. Strstr ( ) function selects a substring by its
View solution
Q. Which syntax is very useful for specifying large chunks of interpolated variable text?
View solution
Q. Which three functions has intimate relationship with each other?
View solution
Q. Function Strcmp ( ) is equals to
View solution
Q. How many operators PHP offer for strings?
View solution
Q. Dot ". " operator in strings are called as
View solution
Q. PHP offers printf ( ) and
View solution
Q. Strtupper ( ) function returns
View solution
Q. Which function takes a single string and returns its length as an integer?
View solution
Q. Which function start its search from backward rather than from beginning?
View solution
Q. Literal string specified in PHP code by
View solution
Q. What does trailing means in replacement of functions?
View solution
Q. Which statement is correct for specifying a string in code?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond PHP? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!