Re: triming utf8 (?) a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rick Pasotto wrote:
I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted
string the result is the original plus some '\ufffd' bytes. How can I
get rid of those extra bytes? I've tried both trim($x,'\ufffd') and
trim($x,utf8_decode('\ufffd')).

trim() is meant to remove chars from the beginning and ending of a string.

http://us2.php.net/str_replace is meant to remove a set of chars from a string. Anywhere within the string.


--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux