I see array_pop() but that only does it for the last element of an array.
I am going through an array like this:
Code: Select all
for($kount=0;$kount<sizeof($ps_list);$kount++)
{
$pxy = explode("|",$ps_list[$kount]);
$pxy = $pxy[0];
if($pxy[$kount] == $this->C_PS)
{
$ps_list[$kount] = "";
}
}