Welcome, Guest. Please login or register.
Pages: [1]
  Print  
Author Topic: Paste bucket  (Read 1687 times)
0 Members and 2 Guests are viewing this topic.

uhm

Kim Jong-il
also an operator.and an IRC frequent visitor.


Email
Paste bucket
24 March 2010, 20:17:39
Code:
<?php
$getal 
47;
$raden 23;
switch (
$raden)
{
case (
$raden == $getal):
 print(
"GOED! <br />");
 print(
"Je hebt het getal geraden.");
 break;
case (
$raden $getal):
 print(
"TE HOOG! <br />");
 print(
"Probeer het nog een keer.");
 break;
case (
$raden $getal):
 print(
"TE LAAG! <br />");
 print(
"Probeer het nog een keer.");
 break;
}
?>

that is a weird switch.


i was looking at pictures of food on my computer.

sniper89

Future sailor, oh yeah
also an IRC frequent visitor.and an operator.
and a fine gentleman.


Re: Paste bucket
07 May 2010, 17:11:03
Yeah, no point in using switch when you put the variable again in the code. Use if.
t/tell boobs.

sniper89

Future sailor, oh yeah
also an IRC frequent visitor.and an operator.
and a fine gentleman.


Re: Paste bucket
21 October 2010, 21:58:17
t/tell boobs.
Pages: [1]
  Print  
 
Jump to: