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
$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