I have a simple php question.
in my php, I have this:
$variable = 'howareyou';
is it possible to somehow modify the code so it only counts up to 6th character of the variable?
so after, when echo’d
it would say howare instead of howareyou.
I need to filter it with a number, like 5th or 6th. Is this possible?
Thanks!
Just use substring.
The syntax is substr(string, start, length) and remember that these are zero indexed.