RE: [PHP-DEV] function suggestion

2001-05-21 Thread Sean R. Bright
This is now implemented in the latest CVS. Grab it from there or try a snaps.php.net sometime tomorrow. Sean -Original Message- From: Alex Black [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 20, 2001 8:39 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] function suggestion I would

[PHP-DEV] function suggestion

2001-05-20 Thread Alex Black
I would like to suggest a function: get_defined_constants(); which returns an array of constant name/value pairs. _alex -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP-DEV] Function suggestion

2001-04-11 Thread Wico de Leeuw
At 12:43 10-4-2001 -0700, Rasmus Lerdorf wrote: Hiya I have been using this (selfmade) function for ages: function String_Replace_Foreign_Chars ($data) { return(strtr($data, "", "AAaaCcDNnO0oo0YyyB")); } Greetz, Wico Using

Re: [PHP-DEV] Function suggestion

2001-04-11 Thread Hartmut Holzgraefe
Rasmus Lerdorf wrote: Using str_replace() would speed this function up by an order of magnitude. the second variant of strtr() as described in the manual would do even better i guess but anyway, php-dev is probably *not* the right place for this topic Lindsey, pleas post to php-general next

[PHP-DEV] Function suggestion

2001-04-10 Thread Lindsey Simon
I'm not positive I'm mailing to the right list, but I have a function that might be useful to others. I often use php to retrieve a name from a database and then let a user upload a file and I name that file by as $user.mp3(in this case). I need to convert all of the international characters to

Re: [PHP-DEV] Function suggestion

2001-04-10 Thread Rasmus Lerdorf
Using str_replace() would speed this function up by an order of magnitude. On Tue, 10 Apr 2001, Lindsey Simon wrote: I'm not positive I'm mailing to the right list, but I have a function that might be useful to others. I often use php to retrieve a name from a database and then let a user

Re: [PHP-DEV] Function suggestion

2001-04-10 Thread Lindsey Simon
Oh yes, and I see I forgot to excape the x in the first five.. Rasmus Lerdorf in message Re: [PHP-DEV] Function suggestion (Tue, 04/10 12:43): Using str_replace() would speed this function up by an order of magnitude. On Tue, 10 Apr 2001, Lindsey Simon wrote: I'm not positive I'm