This repository contains a custom PHP function flip()
that use build-in PHP function rand()
to select one of two values. There is an included .coin class that is styled to be a blue circle, which can display representation of letters A and B.
With ternary operator if function rand()
return 0 is returned letter A. Othervise return letter B.
To check how it looks, click on the preview and then on the green run button.