Re: [PHP] Array & unset()

2012-09-24 Thread Ashley Sheridan
Ken Robinson wrote: >At 08:50 PM 9/23/2012, Ron Piggott wrote: > >>I am wondering if there is a way to remove from >>an array where the value is 0 (“zero”) >> >>Array example: >> >>$total_points_awarded = array( 1 => 17, 3 => 14, 4 => 0, 5 => 1, 6 => >0 ); >> >>In this example I would like

Re: [PHP] Array & unset()

2012-09-23 Thread Ken Robinson
At 08:50 PM 9/23/2012, Ron Piggott wrote: I am wondering if there is a way to remove from an array where the value is 0 (“zero”) Array example: $total_points_awarded = array( 1 => 17, 3 => 14, 4 => 0, 5 => 1, 6 => 0 ); In this example I would like to remove element # 4 and # 6. The “