Remove values from array on foreach PHP -


I have an array like this:

  array ([0] => ; Array ([ID] => 68 [type] => altruism [type_ID] => 131 [name] => 1 name) [1] => Hey ([ID] = 32 [type] => Other type [type_ID] => [name] => 2))   

Let me tell some arrays Removal needs if users are allowed or not. I am thinking of doing it with everyone, and try to remove or remove the necessary ISOs.

My question is this: What is the most effective way to do this? There will be no more than 100 records in the array. But many users will request it and filtering will be done more and more.

this simple and easy

  foreach ($ display_related_tags $ key) = & Gt; $ tag_name} {if ($ tag_name == $ found_tag ​​['name']) {unset ($ display_related_tags [$ key]); }}    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -