* Thus wrote Matthias Nothhaft ([EMAIL PROTECTED]):
> Hi,
>
> ^ inside [] means "not the following chars", so your expression means:
>
> if ($val contains no space " ", no tab "\t" and no newline "\n") {
> //do the job ...
> }
That's not necessarily the correct assesment. rather:
if ($val has any character but ' ', '\t', or '\n') {
// do the job.
}
with: " test\t\n"
because 'test' is in there it results a a true statement.
Curt
--
"My PHP key is worn out"
PHP List stats since 1997:
http://zirzow.dyndns.org/html/mlists/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php