0
$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']){

    }

}
1
Contributor
1
Reply
12
Views
1 Year
Discussion Span
Last Post by ramsiva
0

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
)
)
)

Edited by ramsiva

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.