数组过滤器只能删除没有空格的值(Array filter only remove the values without whitespaces)
数组示例
如上图所示,array_filter只删除像''而没有空格的值。 对于2值也为空的底部,但因为它有空白,所以它不会过滤它。 任何解决方案 我尝试preg_replace()和trim()也无法删除空值的空值...
Array Example
As the above pic show, the array_filter only remove the value which like ' ' without white space. For the bottom that 2 value is empty also but because it have white spaces so it wont filter it. Any solution? i try to preg_replace() and trim() also not able to remove the empty values with spaces...
更多推荐
发布评论