RE: [PHP] running str_replace, it misbehaves!

2009-08-17 Thread Ford, Mike
> -Original Message- > From: Allen McCabe [mailto:allenmcc...@gmail.com] > Sent: 16 August 2009 22:07 [...] > Here is an example of my code: > > [code] > > //ENCRYPT FUNCTIONS > function format_string($string,$functions) > { $funcs = explode(",",$functions); > foreach ($funcs as $

[PHP] running str_replace, it misbehaves!

2009-08-16 Thread Allen McCabe
Hi friends, I'm trying to get an encrypting program working to possibly use for password insertion into a db. I set up a function that runs str_replace on a string (user supplied) two times. It searches for a single letter or number, and replace it with a pair. The next str_replace searches that n