Originally posted by cgraz
You have
<?= $form['text'] = $newtext ?>
Backwards. It should be $newtext = $form['text']
But there's no need to do all that. If you want to echo $form['text'] after all the spaces have been stripped out, use
<?= str_replace(" ", "", $form['text']) ?>
Cgraz
You guys have helped me to get rid of spaces in a string. I now want all the uppercase letters to be made lowercase at the same time.
Is there any short cut to doing this?
To remove spaces I currently have : <?= str_replace(" ", "", $form['text']) ?>