<?php$words = 'asdf asdf aewrw werer ewrew'; $str = preg_replace('#\s+#',"','",trim($words)); echo "'" . $str . '"';
Standard input is empty
'asdf','asdf','aewrw','werer','ewrew"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!