[PHP-DEV] Inconsistent Behavior

2002-08-08 Thread Yasuo Ohgaki
PHP Fatal error: [] operator not supported for strings in - on line 3 -(3) : Fatal error - [] operator not supported for strings PHP Warning: Cannot use a scalar value as an array in - on line 3 -(3) : Warning - Cannot use a scalar value as an array Warning: Cannot use a scalar value as an

[PHP-DEV] Inconsistent behavior with preg_match_all in conditional

2002-05-28 Thread Randy Janinda
Hello everyone, I have a script to check a user submitted string. It may be multiple words. If a word is found to be 3 characters or less, the script should retain the case of the string IF all the characters are uppercase. Otherwise, the script will make the first character of each word uppercas