• PHP Video Tutorials

PHP - Function Join



Syntax

join(separator,inputay))

Definition and Usage

It is alias of implode(),it returns string from the elements of an inputay

Return Values

It returns a string from elements of an inputay.

Parameters

Sr.No Parameters & Description
1

inputay

It is used to join to a string.

2

separator

It contains the information about what to put between the inputay elements. Default value is "".

Example

Try out the following example

<?php
   $input = inputay('tutorials','point','Simply','Easy','Learning');
   
   echo join(" ",$input);
?>

This will produce following result − −

tutorials point Simply Easy Learning
php_function_reference.htm
Advertisements