I understand that rtrim() strips all of the white spaces from the end of a string, and ltrim() strips all of the white spaces from the beginning of a string. But if there are white spaces in the middle of a string will it strip them also? I don't want this to happen....
Would you use the functions like this:
PHP Code:
$myvariable = $rtrim($myvariable);
$anotherVar = $ltrim($anotherVar);
echo $myvariable;
echo $anotherVar;