I want to thank you Ian, Zydox and Nicos. After Zydox response I checked the manual again and read this part in the substr function:
"If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative)...." Sorry to bother you guys, and thanks again. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php