Answers for "functions like implode in php"

PHP
14

php implode

$array = array('banana', 'strawberry', 'apple');
comma_separated  = implode(",", $array);
echo comma_separated; // banana,strawberry,apple
Posted by: Guest on October-26-2020
0

implode example in php

<?php
$arr = array('cat','dog','elephent');
// it will convert array to string
$str = implode(', ',$arr);
echo $str;
?>
Posted by: Guest on September-29-2021
0

php implode

implode(",", $array)
Posted by: Guest on October-29-2021

Browse Popular Code Answers by Language