note 20090 added to control-structures.switch

From: Date: Fri, 22 Mar 2002 03:00:01 +0000
Subject: note 20090 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-28059@lists.php.net to get a copy of this message
To get the conditional statement to work for the above example use this: $chr = substr($a,$i,1); switch (TRUE) { case $chr == "á" || $chr == "à" || $chr == "ã" || $chr == "â": $a = str_replace(substr($a,$i,1),"a",$a); break; case $chr == "é" || $chr == "è" || $chr == "ê": $a = str_replace(substr($a,$i,1),"e",$a); break; } -- http://www.php.net/manual/en/control-structures.switch.php http://master.php.net/manage/user-notes.php?action=edit+20090 http://master.php.net/manage/user-notes.php?action=delete+20090 http://master.php.net/manage/user-notes.php?action=reject+20090

« previous php.notes (#28059) next »