<?php $a = array( 1,1,1,1,2,1,1,1,1,2,1,1,1,1,2 ); global $b; $b = 2; function c( $d ){ global $b; return $d==$b; } var_dump( array_filter( $a, 'c' ) );
You have javascript disabled. You will not be able to edit any code.