Remove an array item by value


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $the_array = array_values(array_diff($the_array,array('the_value')));

URL: http://www.kadimi.com/en/php-remove-an-array-item-by-value-719

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.