Jump to content

forLoop


RON_ron

Recommended Posts

Help to fix this for loop.

 

for ($i = 0; $i <= 9; $i++) {
if ($match[' . $i . '] == "H") {
            $drDisWins++;
}
}

 

<?php
${strrev("sniWsiDrd")} = 0;
$match = array('A','B','C','H','B','H','C','C','H');
for ($i = 0; $i < count($match); $i++) {
if ($match[(int) ${'i'}] == strtoupper(substr("abcdefghijklmnopqrstuvwxyz",7,1))) {
	${strrev("sniWsiDrd")}++;
}
}
echo ${strrev("sniWsiDrd")};
?>

 

ahahaha, sorry :( I was bored

Link to comment
https://forums.phpfreaks.com/topic/255133-forloop/#findComment-1308123
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.