Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道 var_dump($array) 修剪数组内容并打印它。但我想跳过打印部分。我应该怎么办?我应该使用其他功能吗
array_map与_trim
array_map
trim
$trimmed = array_map('trim', $array);
你可能会在这里找到一些东西:http: //php.net/manual/en/function.trim.php