Jump to content


Photo

Changing the alphabet


  • Please log in to reply
2 replies to this topic

#1 Jocka

Jocka
  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationDallas, Texas

Posted 06 August 2006 - 11:46 PM

I know it's possible, I've seen it done but I've completely forgotten how they did it. I tried simple things like str_replace, preg_replace, etc.. But then after a few mistakes I finally realized that I was replacing some letters OVER and OVER. the script didn't keep looping, i just lost the alphabet I set.
Anyway, I just want a-z and 0-9 to be changed to what I want. how do I do it?

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 07 August 2006 - 12:23 AM

Is strtr() what you are looking for?
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 Jocka

Jocka
  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationDallas, Texas

Posted 07 August 2006 - 02:32 AM

Is strtr() what you are looking for?

maybe.. but i don't wanna retype all that. I'm gonna find a way to blend arrays, if I can't, oh well. I guess i'll just go the LONG way.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users