Home > Article > Backend Development > String equality and deletion of variables in php
The results are equal. Here’s how to delete elements in an array: Examples are as follows:
Remarks: At first I couldn't delete firstname. I always thought it was an error with ==. Later I found out that an error occurred when calling the function. If you want to change the incoming array, you should pass in &$user. That is, pass in Only by inserting a reference can the result of the array be changed. |