you want to remove a char at position $x.
so
$the_string = 
substr($the_string,0,$x).substr($the_string,$x+1,strlen($the_string)-1-$x);

you can do some juggling in the second substr() with negative values for the 
parameters but they will not be more fast than this.

Best regards,
Andrey Hristov
----- Original Message ----- 
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 8:38 PM
Subject: [PHP] character replace function


> I need a function that will erase a particular character in a string.
>  
> Any ideas?!?
>  
>  
> THANKS!!!!
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to