diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-26 12:58:12 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-26 12:58:12 +0200 |
commit | bb2e518754e703be095df9d8fd7cb3d82a5d3bbe (patch) | |
tree | ab2ed2e5e9b9d4ef66fb30cb221c43a8ef693cdc /system/helpers/string_helper.php | |
parent | 0336dc228c84695ec75fc8dccedac354d1556de9 (diff) | |
parent | e684bdac2d6282e3b9a5c57e1006d5ed1664f647 (diff) |
Merge upstream branch
Diffstat (limited to 'system/helpers/string_helper.php')
-rw-r--r-- | system/helpers/string_helper.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/helpers/string_helper.php b/system/helpers/string_helper.php index 607a12bcb..c61b26592 100644 --- a/system/helpers/string_helper.php +++ b/system/helpers/string_helper.php @@ -1,13 +1,13 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.2.4 or newer * * NOTICE OF LICENSE - * + * * Licensed under the Open Software License version 3.0 - * + * * This source file is subject to the Open Software License (OSL 3.0) that is * bundled with this package in the files license.txt / license.rst. It is * also available through the world wide web at this URL: @@ -227,9 +227,9 @@ if ( ! function_exists('random_string')) case 'nozero' : $pool = '123456789'; break; } - + $str = substr(str_shuffle(str_repeat($pool, ceil($len/strlen($pool)))),0,$len); - + return $str; break; case 'unique' : |