<?php $val="all"; ?>
I want to remove the last character from the string. I want only al. How can I do this?
You can use substr
substr
<?php echo substr('all', 0, -1); ?>
The output will be. all
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in