Home > Article > Backend Development > The wonderful use of extract() function in PHP_PHP tutorial
Recently, when I was looking at the code of an awesome person, I saw a very useful function: extract(). Its main function is to expand the array. The key name is used as the variable name, and the element value is the variable value. It can be said to be an array. The operation provides another convenient tool. For example, you can easily extract the elements of $_POST or $_GET. You cannot assign values to the content submitted in the form one by one. You can directly use the following code:
form.html