[Users] strip_tail() string length?
Juha Heinanen
jh at tutpro.com
Tue Jan 30 08:08:21 CET 2007
Brandon Armstead writes:
> i.e. strip_tail(strlen($ru) - 2); ... or something like such.
sorry, but my suggestion
substr($ru, -2, 2)
does not work, since it returns the last two chars of $ru not the
remaining chars. strlen is indeed needed for the above. using php
substr and strlen
strip_tail(strlen($ru) - 2)
becomes
substr($ru, 0, strlen($ru) - 2)
-- juha
More information about the sr-users
mailing list