Gen. partnerAlgotech

PHP function implode()

Join array elements with a string

|
September 11, 2019

Availability in PHP 4.0

Join array elements with a string

Parameters

Parameter Data type Default value Note
$glue string "", Defaults to an empty string. This is not the preferred usage of implode as glue would be the second parameter and thus, the bad prototype would be used.
$pieces array not The array of strings to implode.

Return values

string

a string containing a string representation of all the array elements in the same order, with the glue string between each element.

Other resources

Official implode documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.