[PHP] A compress function?

2002-01-04 Thread Gaylen Fraley
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

Re: [PHP] A compress function?

2002-01-04 Thread Emil Rasmussen
Hey 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... This would proberly work: --