haven't touched PHP in ages and am a bit rusty. I need some guidance in where to go from here.
I've got two arrays that I want to compare and find the difference however I can't compare the two as they aren't in the right format.
I'm not exactly sure what the formats are called and don't usually delve into the realm of PHP.
Here's the first array that I want to convert:
Array (
[0] => 2018-08-21 10:00:00
[1] => 2018-08-28 10:00:00
[2] => 2018-09-04 10:00:00
[3] => 2018-09-11 10:00:00
[4] => 2018-09-18 10:00:00
)
That I want to convert into something like this:
Array (
'0' => '2018-08-21 10:00:00',
'1' => '2018-08-28 10:00:00',
'2' => '2018-09-04 10:00:00',
'3' => '2018-09-11 10:00:00',
'4' => '2018-09-18 10:00:00'
)
Once I've done that, I can use array_diff to compare it to another array, however until then I'm a bit stuck. Any help would be appreciated.
The second array I wish to compare is in the same format. But with different values.
Here's my problem: https://3v4l.org/f734u.
Here's an example of what I want it to be like: https://3v4l.org/oeXHR.
Thanks in advance.