i think what i have written all along given too much notice,
if i on the error log it gonna be few mb by 10sec...
i hope someone can teach me from the beggining to help me rewrite everything
am i going to write this for every switch?
<?php
switch ( isset($_GET['i']) ? $_GET['i'] : NULL) {
case NULL:
echo "i is not equal to 0, 1 or 2";
break;
case 0:
echo "i equals 0";
break;
case 1:
echo "i equals 1";
break;
case 2:
echo "i equals 2";
break;
}
?>
or should i write this
<?php
if (isset($_GET['i'])) {
if ($_GET['i'] == 0 ) { echo "i equals 0"; }
elseif($_GET['i'] == 1 ) { echo "i equals 1"; }
elseif($_GET['i'] == 2 ) { echo "i equals 2"; }
//70+ elseif here?
} else { echo "i is not equal to 0, 1 or 2";}
?>
or all i have gotten is wrong? please teach me the best way.. thanks