Not even close. I'm after a function to compress multiples of the same character to one instance, as in my stated example, 30 spaces to 1 space, not compressing the string.
Emil offered a good substitute. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "George Nicolae" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > take a look at http://www.php.net/manual/en/function.bzcompress.php > > -- > > > Best regards, > George Nicolae > IT Manager > ___________________ > X-Playin - Professional Web Design > www.x-playin.f2s.com > > > > "Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > With all the wonderful String functions in PHP, I haven't been able to > find > > a str_compress(). Is there such an animal? Let's say I have a string > like > > this: > > > > $myString = First_word <30 spaces> second_word <10 spaces> etc... > > > > I need to do one of two things. Either compress the multiple spaces to > one > > and then use explode to break the string on a single space, or can someone > > explain another way to break $myString into only those pieces that > contain > > usable text w/o spaces? > > > > Thanks! > > > > -- > > Gaylen > > [EMAIL PROTECTED] > > Home http://www.gaylenandmargie.com/ > > PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/ > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]