如何在PHP中使用数组函数输入连续字符串数组之间的空格


How to enter space between a continuous string array in PHP using array functions?

假设我有一个字符串"stackoverflowdescription"并且我已经使用str_split转换成数组,现在我想在每个单词之间放置空间,使用数组和字符串函数说"stackoverflowdescription"

示例:stackoverflowdescription -> noitpircsedwolfrevokcats -> noitpircsedwolfrevokcats -> stackoverflowdescription

<?php
$output = implode(" ", $yourArrayOfWords);
?>