المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to Remove one element from an array by php



bahattab
05-12-2009, 11:23 PM
How to Remove one element from an array by php



Remove one element from an array (in this example remove $image from array $image_array):


$image_array = array_merge(array_diff($image_array,(array)$image) );



http://tips-scripts.com/one_liners_php