'pid'=>$id can only be found at the next level, but it should not be found at the next level, because the $id passed is fixed, and the grandson level cannot be deleted based on the parent level
autoload2022-08-16 12:06:20
If there is a lower level, the value of id should be an array. Just delete it directly. Why should we delete the grandson level?
If $id is a grandson-level value, just traverse it directly and delete it if you find it