application/helpers/password_helper.php
/**
	 * Random Password
	 *
	 * Generates a random string using a combination of characters and numbers.
	 *
	 * @param	int
	 * @return	string
	 */
Random Password
Generates a random string using a combination of characters and numbers.

@param       int
@return      string
Random Password Generates a random string using a combination of characters and numbers . @param int @return string
function random_password($length = '15')
	{
		$randstr = '';
		$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()-=_+[]<>{}?';
		for ($i = 0; $i < $length; $i++) {
			$randstr .= $characters[rand(0, strlen($characters) - 1)];
		}
		return $randstr;
	}
function random_password ( $ length = '15' ) { $ randstr = '' ; $ characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()-=_+[]<>{}?' ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ randstr .= $ characters [ rand ( 0 , strlen ( $ characters ) - 1 ) ] ; } return $ randstr ; }
Random Password
 Generates a random string using a combination of characters and numbers.
Random Password Generates a random string using a combination of characters and numbers .