PHP array_filter

In PHP sometimes we need to search an array from multidimensional array using a value.Here i want to show the uses of array_filter with call back for solve that types of problem.Suppose we have an multidimensional array like below

$products = array (
1  => array(
        'id'            => 125,
        'name'          => 'The Breville One-Touch Tea Maker',
        'slug'          => 'breville-one-touch-tea-maker-BTM800XL',
        'shortname'     => 'The One-Touch Tea Maker',
        ),

2  => array(
        'id'            => 129,
        'name'          => 'Breville Variable-Temperature Kettle BKE820XL',
        'slug'          => 'breville-variable-temperature-kettle-BKE820XL',
        'shortname'     => 'Variable Temperature Kettle',
        ),

3  => array(
        'id'            => 121,
        'name'          => 'The Breville One-Touch Tea Maker',
        'slug'          => 'breville-one-touch-tea-maker-BTM800XL',
        'shortname'     => 'The One-Touch Tea Maker',
        ),

4  => array(
        'id'            => 135,
        'name'          => 'Breville Variable-Temperature Kettle BKE820XL',
        'slug'          => 'breville-variable-temperature-kettle-BKE820XL',
        'shortname'     => 'Variable Temperature Kettle',
        ),
);

In here there is a products array.Suppose we have an product id that is 121,and we need only the array who’s id is 121,another arrays are not need.For that types of problem we need to do array_filter.Let’s see how to use array_filter() in that type