sabret00the
07-24-2006, 12:00 PM
echo "<pre>";
print_r($formdetails['taglist']);
echo "</pre>";
foreach ($formdetails['taglist'] AS $k)
{
if ($k == $tagtodelete)
{
echo $k . $tagtodelete;
unset($formdetails['taglist'][$k]);
}
}
echo "<pre>";
print_r($formdetails['taglist']);
echo "</pre>";
die;
Array
(
[0] => admining
[1] => amazon
[2] => another tag
[3] => ebs
[4] => ex-girlfriend
[5] => life
[6] => meme
[7] => music
[8] => retest
[9] => singledom
[10] => test
[11] => test again
[12] => wishlist
[13] => work
)
retestretest
Array
(
[0] => admining
[1] => amazon
[2] => another tag
[3] => ebs
[4] => ex-girlfriend
[5] => life
[6] => meme
[7] => music
[8] => retest
[9] => singledom
[10] => test
[11] => test again
[12] => wishlist
[13] => work
)
i even tried
echo "<pre>";
print_r($formdetails['taglist']);
echo "</pre>";
foreach ($formdetails['taglist'] AS $k => $v)
{
if ($v == $tagtodelete)
{
echo $v . $tagtodelete;
unset($formdetails['taglist'][$tagtodelete]);
}
}
echo "<pre>";
print_r($formdetails['taglist']);
echo "</pre>";
die;
print_r($formdetails['taglist']);
echo "</pre>";
foreach ($formdetails['taglist'] AS $k)
{
if ($k == $tagtodelete)
{
echo $k . $tagtodelete;
unset($formdetails['taglist'][$k]);
}
}
echo "<pre>";
print_r($formdetails['taglist']);
echo "</pre>";
die;
Array
(
[0] => admining
[1] => amazon
[2] => another tag
[3] => ebs
[4] => ex-girlfriend
[5] => life
[6] => meme
[7] => music
[8] => retest
[9] => singledom
[10] => test
[11] => test again
[12] => wishlist
[13] => work
)
retestretest
Array
(
[0] => admining
[1] => amazon
[2] => another tag
[3] => ebs
[4] => ex-girlfriend
[5] => life
[6] => meme
[7] => music
[8] => retest
[9] => singledom
[10] => test
[11] => test again
[12] => wishlist
[13] => work
)
i even tried
echo "<pre>";
print_r($formdetails['taglist']);
echo "</pre>";
foreach ($formdetails['taglist'] AS $k => $v)
{
if ($v == $tagtodelete)
{
echo $v . $tagtodelete;
unset($formdetails['taglist'][$tagtodelete]);
}
}
echo "<pre>";
print_r($formdetails['taglist']);
echo "</pre>";
die;