implode() Function:
implode() function which return the string from array elements .syntax:
implode(separator,array)example:
<?php$arr=array(“hello”,”I”,”am”,”using”,”programminglogic”);echo implode(“ “,$arr).”<br/>”;echo implode(“-“,$arr);
?>
?>
Output:
hello I am using programminglogic
hello-I-am-using-programminglogic
hello-I-am-using-programminglogic
0 comments:
Post a Comment