Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 556 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 556 Bytes

PHP function flip

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.

PREVIEW