The Ds\Deque::join() function is an inbuilt function in PHP which is used to join all values in the Deque as a string. The separator can also be used to join the elements.
public Ds\Deque::join( $glue ) : string
Parameters: This function accepts single parameter $glue which holds the separator to separate Deque elements.
Return Value: This function returns all values of the Deque joined as a string.
Below programs illustrate the Ds\Deque::join() function in PHP:
Original Deque Ds\Deque Object (  => 1  => 2  => 3  => 4  => 5  => 6 ) String form: string(11) "1|2|3|4|5|6"
Original Deque Ds\Deque Object (  => Geeks  => for  => Geeks ) String form: string(13) "GeeksforGeeks"
- p5.js | join() function
- PHP | join() Function
- PHP | Ds\Set join() Function
- PHP | Ds\Vector join() Function
- PHP | Ds\Sequence join() Function
- Node.js | join() function
- How to get the function name inside a function in PHP ?
- PHP | end() Function
- PHP | pos() Function
- PHP | key() Function
- PHP | Ds\Set xor() Function
- CSS | rgb() Function
- PHP | min( ) Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.