join function is easy to use concate string from array.
example
<php
$array = array('lastname', 'email', 'phone');
$comma_separated = join(",", $array);
echo $comma_separated; // lastname,email,phone
?>
(php4, php5);
Eclipse,Netbeans,Java,PHP,C/C++/C#,.NET,Visual Studio
No comments:
Post a Comment