Home >Backend Development >PHP Tutorial >PHP extract array split into multiple variables
Output result: color=red size=XXL price = 53 Through the above example, we found that the value of $size is XXL, not the previous "old size", which means that by default, when the key in the array conflicts with an existing variable, the original variable will be overwritten. Continue to introduce the last two optional parameters of the extract function. The second parameter $extract_type is used to control the processing method when a conflict occurs. Possible values are:
Output result: color=red size=XXL price = 53 green |