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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!