[PHP] Re: test for ascii or binary string

2002-11-30 Thread Paul Chvostek
On Fri, Nov 29, 2002 at 10:27:05PM -0600, Jonathan Sharp wrote: Is there a way to determine if a string has ascii or binary data in it? You could always see if it matches a regular expression that represents the ascii range you're considering. I.e., ereg('[^a-zA-Z0-9]',$string) will return

[PHP] Re: test for ascii or binary string

2002-11-29 Thread Jonathan Sharp
Doh, so simple. I guess the correct form of the question would be how do I determine if a string has just a-zA-Z0-9 in it plus punctuation... thanks, -js Paul Chvostek wrote: On Fri, Nov 29, 2002 at 10:27:05PM -0600, Jonathan Sharp wrote: Is there a way to determine if a string has ascii or