Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/full-stack-web-developer-and-designer/php-function-flip

A custom PHP function flip() that use build-in PHP function rand() to select one of two values.
https://github.com/full-stack-web-developer-and-designer/php-function-flip

mirnesglamocic php phpfunction

Last synced: 7 days ago
JSON representation

A custom PHP function flip() that use build-in PHP function rand() to select one of two values.

Awesome Lists containing this project

README

        

# 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](https://replit.com/@MirnesGlamocic/PHP-function-flip?v=1)