Re: Client side fatal PHP error
| From: | Philip Olson | Date: | Tue, 25 Dec 2001 21:01:32 +0000 |
| Subject: | Re: Client side fatal PHP error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78730@lists.php.net to get a copy of this message | ||
> "Call to unsupported or undefined function srtoupper() in.... on line 82."
srt != str (typo).
> if (strtoupper(substr($xmbrcode,11,1)) != "B" &&
> strtoupper(substr($xmbrcode,11,1)) != "P" &&
> srtoupper(substr($xmbrcode,11,1)) != "H" &&
> srtoupper(substr($xmbrcode,11,1)) != "O").... {
See above. Btw, consider something like:
$str = '123456789abcdef';
$bad = array('B','P','H','O');
if (in_array(strtoupper($str{11}),$bad)) {
echo 'boo';
}
I can't believe people code on Christmas :)
Warm regards,
Philip Olson