$multi=array(0=>array("object"=>"25","kr"=>"25","score"=>"50","start"=>"2016-07-01","end"=>"2016-08-15"),
            1=>array("object"=>"31","kr"=>"19","score"=>"50","start"=>"2016-07-01","end"=>"2016-08-15"),
           2=>array("object"=>"2","kr"=>"2","score"=>"4","start"=>"2016-07-01","end"=>"2016-08-15"),
           3=>array("object"=>"4","kr"=>"4","score"=>"8","start"=>"2016-08-16","end"=>"2016-09-30"),
           4=>array("object"=>"6","kr"=>"6","score"=>"12","start"=>"2016-08-16","end"=>"2016-09-30"),
           5=>array("object"=>"9","kr"=>"9","score"=>"20","start"=>"2016-08-16","end"=>"2016-09-30"));

$mydatearray=array("startone"=>"2016-07-01","startsec"=>"2016-08-16");

foreach ($multi as $key => $value) {

    if($value['start']==$mydatearray['startone']){

    } else if($value['start']==$mydatearray['startsec']){

    }

}

any body help me need below format

Array
( [0] => Array
([0] => Array
(
[object] => 25
[kr] => 25
[score] => 50
[start] => 2016-07-01
[end] => 2016-08-15
)
[1] => Array
(
[object] => 31
[kr] => 19
[score] => 50
[start] => 2016-07-01
[end] => 2016-08-15
)
[2] => Array
(
[object] => 2
[kr] => 2
[score] => 4
[start] => 2016-07-01
[end] => 2016-08-15
)

)

[1] => Array
(
[0] => Array
(
[object] => 25
[kr] => 25
[score] => 50
[start] => 2016-08-16
[end] => 2016-09-30
)
[1] => Array
(
[object] => 31
[kr] => 19
[score] => 50
[start] => 2016-08-16
[end] => 2016-09-30
)
[2] => Array
(
[object] => 2
[kr] => 2
[score] => 4
[start] => 2016-08-16
[end] => 2016-09-30
)
)
)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.