Here its the paradox of explode() function and the function name is implode().
using the function:
$str=array(‘kumar’,'gandhi’,'flexonblog’);
now i want to join the array elements into one string with’-’ as separated ,so to do this we have to write the line..
$newstr=implode(“-” ,$str);
Now if we print the string string ..
echo $newstr;
The Ouput: kumar-gandhi-flexonblog
its the reverse of the function explode().


June 27, 2008 at 12:26 am |
this is a good tool if you want a simple way of passing arrays between a client language and php.
June 30, 2008 at 10:59 am |
yes your correct, and for separations.
regards,
kumar.