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"
- PHP | join() Function
- p5.js | join() function
- PHP | Ds\Set join() Function
- Node.js | join() function
- PHP | Ds\Sequence join() Function
- PHP | Ds\Vector join() Function
- Node.js | path.join() Method
- How to get the function name inside a function in PHP ?
- PHP | abs() Function
- PHP | min( ) Function
- PHP | max( ) Function
- PHP | Ds\Set first() Function
- PHP | Ds\Set last() 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.