diff options
author | Andrey Hristov <andrey@php.net> | 2002-09-25 18:06:05 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2002-09-25 18:06:05 +0000 |
commit | fc46a46b06355234dadc98268bf9eea6b903c54e (patch) | |
tree | 5f619fb30b07bcb069f909e7f7651f8c26c203c0 /ext/standard/basic_functions.c | |
parent | c9b9e63ea394e32ec0ac316a87894eb67c1da184 (diff) | |
download | php-git-fc46a46b06355234dadc98268bf9eea6b903c54e.tar.gz |
str_shuffle() function added. Like shuffle() for arrays - however the
algorithm for creating the permutation is quite simple. More like
the implementation of shuffle() for 4.2.1 .
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r-- | ext/standard/basic_functions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index cfa03d6afb..43548224e1 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -329,6 +329,7 @@ function_entry basic_functions[] = { PHP_FE(strstr, NULL) PHP_FE(stristr, NULL) PHP_FE(strrchr, NULL) + PHP_FE(str_shuffle, NULL) #ifdef HAVE_STRCOLL PHP_FE(strcoll, NULL) |