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

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

ruby on rails - ActiveRecord order not working -