Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6006165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:30:02+00:00 2026-05-23T01:30:02+00:00

For a little background information, I am trying to sync two calendars (one of

  • 0

For a little background information, I am trying to sync two calendars (one of them is the google calendar)

I am using the two APIs to get all the event information from these two calendars and putting them into their own arrays. So that leaves me with:

GoogleEventArray
OtherEventArray

In the long run I would like to do a two-way sync between the two arrays. However, for now to keep it simple I just want to keep OtherEventArray as the Master, and GoogleEventArray as the slave.

I am not looking to just delete the entire google calendar each time I run the script and update it from the OtherEventArray because this script will be on a cron job running every minute or so to keep the google calendar up to date. I just need to check the arrays for changes or needed additions.

So I just need some ideas for the best way to sync these two arrays?

EDIT

Maybe a better way would be to find whats different between these two arrays and add it to a third array so I can just use this to save the changes to the google calendar.

Because if I just combine the two arrays into one I still would have to save all this data that hasnt been changed to the google calendar therefore causing unnecessary work load.

Also here are my two arrays with data in them so you can get an idea of things that can change and I need to detect those changes in the title, or date, or description

http://snipt.org/xXW

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:30:03+00:00Added an answer on May 23, 2026 at 1:30 am

    have you tried array_combine.

    You can do array addition also:

    $arrFirst = $arrSecond + $arrFirst
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First a little background, I'm using jdk 1.6. I've got a 2 column table
For a little background information, I've got an application that's running in a loop,
Little background.. I'm in the process of making an OpenGL game using Java and
first, a little background. I am using VS2010 and have a WCF service that
Fist a little background: I'm using Rails 3.0.7, Postgres 9.0 and MetaWhere/MetaSearch 1.0.4 I
A little background: I am trying to create a lightweight cookieless database-backed user session
A little background information: I have a table called table_a , which has 12
Here is a little background information. I'm working on replacing a dll that has
A little background: I'm creating a set of adapters to allow communication with mobile
A little background: I am loading a WPF UI from a database which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.