Implode failing, but why?
Posted: Tue Nov 17, 2009 7:23 pm
Hello there,
I am using an 'Implode' to separete my array with commas. Pretty standard I thought, but if fails every time, but why, I don't know? Any suggestions would be greatfully recieved, please see code below:
The result is just the names, but no commas or spaces; like this - John SmithJoe BloggsBurt Reynolds
Any clues anyone?
Thanks in advance!!
I am using an 'Implode' to separete my array with commas. Pretty standard I thought, but if fails every time, but why, I don't know? Any suggestions would be greatfully recieved, please see code below:
Code: Select all
$row_getJournalAuthors = mysql_fetch_array($query_getJournalAuthors);
$arr = array($row_getJournalAuthors['name']);
$str = implode(", ",$arr);
echo $str;
Any clues anyone?
Thanks in advance!!