I tried to remove the first letter if it is ‘r’ for example by using ltrim function, but it didn’t work.
How can check if the first letter if the word ‘r’ or ‘n’ etc, by using “if”
<?php
$string = "no";
if (ltrim($string ,'r')) {
echo 'Yes';
}
?>
String elements can be accessed like it’s an array …