PDA

View Full Version : Impode() not working with $vbulletin->GPC[]


Oreamnos
12-07-2005, 07:17 AM
I can not get implode() nor join() to work when i try to use it with $vbulletin->GPC[]. Here's what i have so far:

$vbulletin->input->clean_array_gpc('r', array(
'deleted_items' => TYPE_ARRAY,
));

echo $vbulletin->GPC['deleted_items'];
echo "<br />";
$deleted_items = implode(',', $vbulletin->GPC['deleted_items']);
echo $deleted_items;

But the GPC gets outputed but the new variable with the joined array is empty. Output:Array<br />

what am i doing wrong?

eric

oops, nevermind. i wasn't passing anything to the array in the first place, of course it would be empty... :P

AN-net
12-07-2005, 07:35 PM
use print_r() or var_dump() instead