implode - convert array into string without built in function php -


how convert array string without built in function php

$array = array("a1","b1","c1","d1","e1","f1"); 

output:

a1 b1 c1 d1 e1 f1;

<?php     $arr = array("a1","b1","c1","d1","e1","f1");     $str="";     foreach($arr $a)     {         $str=$str." ".$a;     }     echo $str; ?> 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -