This code doesn't seem to work, so I'm hoping someone can point out something wrong with it:
[code=php]
foreach($stringArray as $value) {
$exceptionArray = array('test'); //create list of exceptions that should be upper case
if (in_array($value, $exceptionArray)) strtoupper($value);
}
[/code]
Assuming $value = 'test', is there anything wrong with this? There is only one statement if this is true, and I tried brackets anyway and that didn't seem to make the difference. I'm trying to make test == TEST.
Thanks