#63. PHP Explode & Implode Function

 How to work PHP Explode & Implode Function?

E.g


Run Code:


<?php

$str = "How are you";
$str = 'Aqib,Saqib,Asif,Hamza';

$str = implode(",", $array);

echo "<pre>";
print_r($array);
echo "</pre>";


How to work Implode Function?


Run Code:

<?php



$array = array('Civic','Corola','Alto');

$str = join(",", $array);

echo $str;
?>


Comments

Popular posts from this blog

#30. PHP Recursive Function