Skip to content

full-stack-web-developer-and-designer/PHP-function-flip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages