CtronX (cyclotron) wrote in php,
CtronX
cyclotron
php

Ack - cant wrap my head around this logic

I have 2 arrays. One is calendar days, one are events in that date range. I want to merge the two arrays into one array but only where the event date matches the calendar days. Any suggestions?


Here's the data:

CalArray
(
[0] => 050731
[1] => 050801
[2] => 050802
[3] => 050803
[4] => 050804
[5] => 050805
[6] => 050806
[7] => 050807
[8] => 050808
[9] => 050809
[10] => 050810
[11] => 050811
[12] => 050812
[13] => 050813
)

EventArray
(
[0] => Array
(
[0] => 205
[1] => 050801
[2] => met
[3] => big
[4] => 00
[5] => 7 signs email and landing
)

[1] => Array
(
[0] => 210
[1] => 050802
[2] => tfc
[3] => pkr
[4] => 00
[5] => Clackamas edits .25 hr
)

[2] => Array
(
[0] => 188
[1] => 050803
[2] => met
[3] => csc
[4] => 66
[5] => 3 Templates 17 hours low 10.5 as of 7/30
)

[3] => Array
(
[0] => 201
[1] => 050803
[2] => met
[3] => csc
[4] => 00
[5] => Risk Email
)

[4] => Array
(
[0] => 206
[1] => 050804
[2] => met
[3] => csc
[4] => 00
[5] => PCI Banners
)

[5] => Array
(
[0] => 213
[1] => 050806
[2] => met
[3] => big
[4] => 04c
[5] => Partner copy Satisnet
)

)
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 22 comments