The Way to Programming
The Way to Programming
I have been trying to figure this out and had no success. Had a look online and found nothing.
I have an array:
Could anyone tell me what function i have to use so they just display like this:
James, Tim, Mark and John
You need the implode function. More info here:
http://php.net/manual/en/function.implode.php
Use it like this:
echo implode(",", $names);
Sign in to your account