I am not into PHP but looking at the things I would suggest you create a model something like this
namespace ConsoleApplication1
{
public class Movie
{
public Movie(string movieId, string name)
{
_movieId = movieId;
_name = name;
}
private string _movieId;
public string MovieId
{
get { return _movieId; }
set { _movieId = value; }
}
private string _name;
public string Name
{
get { return _name; }
set { _name = value; }
}
}
public class Movies :List<Movie>
{
}
class Program
{
static void Main(string[] args)
{
Movies movies = new Movies();
movies.Add(new Movie("1", "End of Days"));
Console.ReadKey();
}
}
}
you can have a similar kind of model for the other array. It might be useful to override function like 'EqualsTo' in the Movie object class to be able to compare two objects.
Also, you can add find method or implement indexers in the Movies class to locate a movies based on Id or Name. There are opportunities to extend the model to cater to your needs. :)
HTH