PDA

View Full Version : Bad Argument for Implode>_<


AN-net
08-27-2004, 06:22 PM
ok im getting this:
[quote=evil php]
Warning: implode(): Bad arguments. in /home/anima22/public_html/testvb/journal.php on line 414
[/php]

here is line 414:

$jbuddies= implode(' ', $journalinfo['jbuddylist']);


did i mess up implode?

filburt1
08-27-2004, 06:40 PM
implode() expects an array. Apparently, $journalinfo['jbuddylist'] is not (likely it's a string).


echo "<pre>";
var_dump($journalinfo['jbuddylist']);
echo "</pre>";

AN-net
08-27-2004, 06:44 PM
how would i make $journalinfo['jbuddylist'] into an array? do i use explode?

filburt1
08-27-2004, 06:47 PM
Yes.