What is use of join() function.?
The join() function returns a string from the elements of an array.
The join() function alias of implode() function.
Syntax of strtolower() function:
join(" ",array)
You can see below example of join() function in php.
?php>
//here $Getarr is a array name
$Getarr = array('Hi','Joe!','Well','Done!');
//now call join() with separator
echo join(" ",$Getarr)."<br>";
//here call join finctiom with + sign
echo join("+",$Getarr)."<br>";
?>
Output of above code will be as following:-
1-Hi Joe! Well Done!
2-Hi+Joe!+Well+Done!
0 Comment(s)