Date: 02/26/00
- Next message: Brian Havard: "[PHP-DEV] cvs: /php3/functions microtime.c /php3 ChangeLog"
- Previous message: Charles Hagenbuch: "[PHP-DEV] cvs: /php3/functions imap.c"
- Next in thread: Tom Fishwick: "[PHP-DEV] array_rand and strcontains ??"
- Maybe reply: Tom Fishwick: "[PHP-DEV] array_rand and strcontains ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Just a thought for two new functions:
1. random_element array_rand(array input) - easy to do in php... but i
think it would fit in well with the array_* funcs
2. bool strcontains(string str) - I would think there's something to do
this right now, ereg or strpos are the closest I can think of, but ereg
can be slow plus you have to escape it, and with strpos if the string
your looking for is at the beggining it returns 0...
Thanks,
Tom
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Brian Havard: "[PHP-DEV] cvs: /php3/functions microtime.c /php3 ChangeLog"
- Previous message: Charles Hagenbuch: "[PHP-DEV] cvs: /php3/functions imap.c"
- Next in thread: Tom Fishwick: "[PHP-DEV] array_rand and strcontains ??"
- Maybe reply: Tom Fishwick: "[PHP-DEV] array_rand and strcontains ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

