0
<?php $x=rand(1,3); switch ($x) { case 1: echo "One"; break; case 2:
4 Respuestas
+ 6
Rajat Khatore random number generator is used in your code snippet so when you run it multiple times you will see other two option too came as the output.
+ 7
Rajat Khatore what is your question as your linked code is working correctly do you have any query?
+ 6
Rajat Khatore But in my case it prints No match.
0
My query is that it is a random variable right so why it always print one not no match