Joining the array elements into a single string - PHP Views : 313
Tagged in : PHP
0 0
Send mail
Joining the array elements into a single string

The function 'join' is used to join various array elements into a single string. Alternatively 'implode' can also be used to join array elements into a string.

Syntax:


join(separator,arrayname);

(or)

implode(separator,arrayname);


Example:

$arraystring=array("e","raj","shun");

implode("/",$arraystring);

Output :

e/raj/shun
By Sanju, On - 2010-09-17



    Login to add Comments .