PHP - String Functions
Identify the error in the following PHP code that tries to remove trailing spaces:
$str = "Test string "; $newStr = ltrim($str); echo "'$newStr'";
$str = "Test string "; $newStr = ltrim($str); echo "'$newStr'";
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions