0
Roughly Output What is it? : ) - Switch
<? php $ x = array (' Can ', 'take', 'Coffee', 'You', 'Hated', 'Read', 'I', 'Love', 'Me', 'a', 'day'); $ y = 5; $ xx = $ y * 5 + 3 + 2; $ xx / = 3; $ xx - = 5; $ xx - = 4; switch ($ xx) { case 1: echo $ x [0]. "". $ x [3]. "". $ x [1]. "". $ x [9]. "". $ x [2]. "?"; break; case 2: echo "Do". $ x [3]. "". $ x [7]. "". $ x [8]. "?"; break; case 3: echo $ x [6]. "". $ x [7]. "". $ x [3]. ""; break; default: echo "Sorry I'm From Indonesia Please Using Language :("; break; } ?>
2 Answers
+ 1
Use "Code Playground" to write your code, please.
^_^
0
Your variable declaration is wrong.
-
It should be - $x (not $ x) don't use any space between '#x27; & 'x'.