Home >Backend Development >PHP Tutorial >Solution to the problem that there are spaces in the array when php file is read
Solution:
Attached is the usage of the array_map() function: arrayarray_map( callback callback, array arr1 [, array ...] ) array_map() returns an array that contains all the cells in arr1 after the callback has been applied. The number of arguments accepted by the callback should be consistent with the number of arrays passed to the array_map() function. |