PHP implode () Function Example Tutorial
Definitions and usage
The implode () function returns the content array of a string.
Grammar
Implode (Separator,array) parameter description separates optional. Specifies the element of an array to put something between. The default is required for the (empty string) array. Array added to a string--------------------------------------------------------------------------------hint and description Note: Implode ( function to accept its parameters or order. However, for compliance with implode bombing (), you should use a record order argument. Note: The implode () of the separator parameter is optional. However, it is recommended that you always use backward compatibility of two parameters. --------------------------------------------------------------------------------such as <?php
$arr = Array (' Hello ', ' world! ', ' beautiful ', ' day! ');
echo Implode ("", $arr);
?>
Output.
Hello world! Beautiful day!