The arrays may have their values combined or seperated from one another as wanted. These operations are achived by functions listed below.

The list of functions used for joining or separating array values:

The explode() function

The explode() function is used to split an array into array strings.

Example with explode() array function

The implode() function

The implode() function is used to join the elements of an array.

Example with implode() array function

 

›› go to examples ››