On Thu, Oct 27, 2011 at 10:31 AM, Tontonq Tontonq <root...@gmail.com> wrote:
> i have an array like
>
>  [0] => Array
> (
> [likes] => 113091
>  [name] => blabla
>  [access_token] => AAABZCTx
> [id] => 188206217874932
>
> )
>
>  [1] => Array
> (
> [likes] => 113091
> [name] => blabla
> [access_token] =>   AAABZCTz
> [id] => 188206217874932
>   )
>
> i want to filter the array by [id] sub value?
>

Not quite sure what you mean by "filter" in this case, but the
function that pops to mind is
http://www.php.net/manual/en/function.array-filter.php, which applies
a callback function to each member of the array where you can
determine if it should be included in the filtered list by returning
true.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to