[php] letter scrambler

Custom Title Activated
Loyal Member
Joined
Nov 28, 2004
Messages
2,236
Reaction score
0
Hi three,

I jsut made a php txet sbnmaicrg sicrpt, wcihh miexs all the letetrs in the wrod except the first and last oens - as you see, it is slitl pettry piblosse to read.

Nedeed tihs for one pejocrt, but also wenatd to sahre it wtih you.
Epxmae form ilcedund.

(I know that is not the bset way to code, bausece erenhtyivg wulod be qtiue seohomtr with the use of perg or ereg, but I am not rlaley skelild for taht, so used mine mohetd)

eojny
 

Attachments

Last edited:
I've heard of this before...

A better way would've been to swap the letters in-place randomly and a random number of times.
well, my script exactly does that. everytime you try it generates letter places randomly, only the first and last letters are not touched (because that's the point of still being able to read such text)
 
Back