Hello,
I am rewriting code from asp to php and need some help with a string function.
I want to be able to take a string and reduce its length with php.
For example, how do I take a string such as "elephant" and remove the last three characters?.
I need to modify script for my message board so that the last three letters of a "subject" are removed, so that I can add the letters "Re:" to the beginning of the string. In the above case
'Re:eleph'.
In ASP the fucntion Len(subject,5) would achieve the required result. Is there a comparable function in PHP?
Thanks in advance.
Brian MacCoilĂn