Re: array_unique by id multi-dimensional array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 27, 2011 at 10:31 AM, Tontonq Tontonq <rootdot@xxxxxxxxx> 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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux