Re: [PHP] rtrim Null characters

2005-10-21 Thread Jasper Bryant-Greene
On Fri, 2005-10-21 at 20:45 -0500, Richard Lynch wrote: > Anyway, my question is, what is the morally correct function to use to > remove these null characters from the end of my string? > > I'm guessing 'rtrim' would work, but is a NUL char really whitespace? I think rtrim() is probably your be

[PHP] rtrim Null characters

2005-10-21 Thread Richard Lynch
So, for fun, (well, *MY* idea of fun) I implemented a dirt-simple CAPTCHA. The image is totally OCR-able, but anybody wants to work that hard at it can have at it. That's modular enough to (really) fix later anyway/ After lots of encryption/decryption with urlencoding, htmlentities, and base64_e