PHP explode() and implode() Function
Program 1
<html> <head><title>Array in PHP Application</title> <body> <pre> <center> <?php // $s="Data flair free course of php"; // $newarray=explode(' ',$s,3); // print_r($newarray) $myarray=array("Data","Flair","free","course","with","free","certificate"); print_r($myarray); $mystr=implode('',$myarray); echo "<br>"; echo $mystr; ?> </pre> </center> </body> </html>