Professional Documents
Culture Documents
21203A0009 Exp-4
21203A0009 Exp-4
Experiment No: 4
The main use of array_merge() is to combine two or more arrays into a single
array. It appends the elements of subsequent arrays to the end of the previous
one, resulting in a new array.
Implode():
Purpose: Joins elements of an array into a single string. It's also known as the
"join" function in some languages.
Parameters:
separator: A string to be inserted between each element of the array when
they're joined.
array: The array whose elements you want to join together.
Example:
Explode():
Purpose: Splits a string into an array of substrings based on a specified
delimiter.
Parameters:
delimiter: The string that marks where the original string should be split.
string: The input string to be split.
Example:
Exercise: