php - Removing an array result -


[5] => array     (         [id] => 29372         [product_id] => array             (                 [0] => stdclass object                     (                         [id] => 1469                         [type_id] => 1                         [title] => hearth 2 hearth                         [cover] => 21cf9d7d09d403251ba5d01ff33cd089.jpg                         [coverid] => 1178                         [inserted_by] => 0                         [inserted_date] => 2011-02-11 13:55:23                         [status_id] => 0                     )              )          [variable_id] => 9         [variable_value] => 2011-02-11         [master_value] =>          [released_date] => 2011-02-11         [price] => array             (                 [0] => array                     (                         [product_id] => 1469                         [media_format] => vcd                         [price] => 29000                         [discount] => 5                     )              )          [media_format] => vcd     )  [6] => array     (         [id] => 30074         [product_id] => array             (                 [0] => stdclass object                     (                         [id] => 1470                         [type_id] => 1                         [title] => hearth 2 hearth                         [cover] => 149ddd4d1d5e567c1300d4831323e1c5.jpg                         [coverid] => 1177                         [inserted_by] => 6                         [inserted_date] => 2011-02-16 15:18:58                         [status_id] => 0                     )              )          [variable_id] => 9         [variable_value] => 2011-02-11         [master_value] =>          [released_date] => 2011-02-11         [price] => array             (                 [0] => array                     (                         [product_id] => 1470                         [media_format] => dvd                         [price] => 39000                         [discount] => 0                     )              )          [media_format] => dvd     ) 

i want result media_format = dvd whole array gone, there anyway delete array or remove it?

the same way "delete" variable:

unset($array[$index]); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -