Peter J. Schoenster wrote:
> Here is the example:
>
> <?php
>
> $string = 'asfddsaz';
>
> if (eregi('\s', $string)) {
>     echo "Whitespace present";
> }else {
>     echo "NO Whitespace present";
> }
> ?>
>
> Why does the above return true? There is no whitespace in the string.
> What am I missing?

Try using [[:space:]] when using eregi. See also
http://www.developers-resources.com/stories.php?story=01/10/25/0549771

Grtz Erwin


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

Reply via email to