I'm having some issues in the construction of an algorithm for a project. This is just a fraction of the algorithm and my problem is this:
I'm trying to build a PHP function that gets the values of the first and second rows of a table and subtract them. Then the function gets the second and third values and subtract them, then the third and forth and so on until the end of the table. (The table will be sorted ASC and the value of the subtraction will be use for posterior use) Is this possible?
Thank you very much. All the help provided will be helpfull