The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
why isn't this unsetting?
PHP Code:
Code:
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 ) PHP Code:
|
#2
|
||||
|
||||
I THINK it should be :
Code:
echo "<pre>"; print_r($formdetails['taglist']); echo "</pre>"; foreach ($formdetails['taglist'] AS $k => $v) { if ($v == $tagtodelete) { echo $v . $tagtodelete; unset($formdetails['taglist'][$k]); } } echo "<pre>"; print_r($formdetails['taglist']); echo "</pre>"; die; |
#3
|
||||
|
||||
thanks amy, i'll give it a whirl
|
#4
|
||||
|
||||
or an array flip will work if you just process the element value.
|
#5
|
||||
|
||||
alternatively for anyone else baffled by this in the future (probably me).
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|