PHP Function to Randomize string CaSe

By | January 28, 2010

Sometimes, for example, when you need to create a password, you need to change character case. I wrote the function that allows to generate a string with random case. Here it is:

function randomcase($word)
{
$output="";
for ($l=0; $l

It's very simple, but sometimes you need a ready code instead of writing your own. Hope to save some minutes. :)

One thought on “PHP Function to Randomize string CaSe

  1. Pingback: PHP Function to Randomize string CaSe | LAMPdocs: Linux, Apache … | Drakz Free Online Service

Comments are closed.