Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/full-stack-web-developer-and-designer/php-function-flip
- Owner: Full-Stack-Web-Developer-and-Designer
- License: mit
- Created: 2023-01-27T21:35:20.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T23:11:08.000Z (almost 2 years ago)
- Last Synced: 2023-10-31T04:30:41.000Z (about 1 year ago)
- Topics: mirnesglamocic, php, phpfunction
- Language: PHP
- Homepage: https://replit.com/@MirnesGlamocic/PHP-function-flip?v=1
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)