Ack - cant wrap my head around this logic

    Date: 08/05/05 (PHP Community)    Keywords: templates

    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
    )

    )

    Source: http://www.livejournal.com/community/php/331459.html

« getting rid of unwanted... || Trees »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home