Vidyalelo
PHP · Q27

Regular Expressions

Programming · PHP · question 27

Q27

Which one of the following preg PHP functions is used to take a string, and put it in an array?

A.
preg_destroy()
B.
preg_split()
Answer
C.
preg_unchain()
D.
preg_divide()

Answer: Option B

Solution

Answer: Option B
Solution:
The string is broken up into different values in the array based upon your input.