Created
June 22, 2011 11:08
-
-
Save mbernson/1039887 to your computer and use it in GitHub Desktop.
Array filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre><?php | |
$ar = array( | |
array(103,105,108), | |
array(53,231,451), | |
array(103,12,32), | |
array(623,125,156) | |
); | |
$count = 0; | |
foreach($ar as $i) | |
{ | |
if($i[0] == 103) | |
{ | |
unset($ar[ $count ]); | |
} | |
$count++; | |
} | |
var_dump($ar); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is this, I don't even...