The first method: the first thing that comes to mind, the addition and subtraction of the total
The second method, after a little thought, we will use the function in PHP to achieve, list() uses the elements in the array to assign a set of variables
The third method, let’s use various string segmentation functions provided in PHP to achieve, explode() string segmentation method