English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
join(separator, inputay))
It is an alias of implode(), which returns a string from the elements of inputay
It returns a string from the elements of inputay.
Serial Number | Parameters and Description |
---|---|
1 | inputay The array to be combined into a string |
2 | separator Specify the content placed between array elements. The default is "" (empty string). |
Try the following example to combine array elements into a string:
<?php //Use join to combine array elements into a string $input = array('w3codebox, '.com', 'Simply', 'Easy', 'Learning'); echo join(" ", $input); ?>Test and See‹/›
Output Result-
w3codebox .com Simply Easy Learning