I registered on another forum hot.... they never activated my account or help me so here it goes. I hope you guys are friendly
I am basically trying to return an array with all the versions that the current software hasn't updated too. (I am making a software update script)
I have built everything else including an API etc.. I have 12 years php knowlegde but this is bugging me and I have never come across this before.
So I have an array:
private $current_versions = array( '1.0.0', '1.0.1', '1.0.2', '1.1.0', '1.1.1', '1.1.2' );
This array is all of the versions for the software.
I have two other variables:
$current_version = '1.0.2'; $new_version = '1.1.2';
I am basically trying to get the difference. The current version the software is running is: 1.0.2 and the current actual version of the software is: 1.1.2. I need to return an array with just the versions the software is missing, so that I can run the update based on them versions only; in order.
Thanks for your help and I will be taking part in this forum full time












