如何从逗号分隔的单词中洗牌?
例如我的代码
//code1
$name1 = explode(',', 'one, two, three, four, five, six, seven, eight, nine, ten');
$name1 = shuffle('trim', $name1 );
echo $name1;
//code2
$name2 = ('one, two, three, four, five, six, seven, eight, nine, ten');
$name2 = shuffle('trim', $name2 );
echo $name2;
我想要这样的东西
输出1
two one eight three six four ten five seven nine
输出2
eight, five, two, three, six, four, ten, one, seven, nine,
谢谢你。