Forums / Developer / Remove an element from an array / Comment41269
Paul Forsyth
Friday 13 August 2004 4:30:35 am
Would this work (quickly written):
$knownValue="" $newArray=array(); {section var=Item loop=$oldArray} {section show=ne($Item, $knowValue)} $newArray|append($Item)} {/section} {/section} {set oldArray=$newArray}
It uses an extra array for this...