Question: How do I compare 3 variable images in the attached slot machine code and then if all 3 images match show an image, but if
How do I compare 3 variable images in the attached slot machine code and then if all 3 images match show an image, but if they do not match then show a different image. Can not use javascript. It must be php or html. The pictures are .png files as stated in the existing code
Welcome to Mohawk's Slot Machine
This a skeleton from which to start your work.
// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);
// spit an image tag echo ''; ?>
// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);
// spit an image tag echo ''; ?>
// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);
// spit an image tag echo ''; ?>
Start New Game!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
