Skip to content

PHP single-serving site which use random data for change the background color of the page, text, font style, font size, font color, and text-align

License

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

PHP function rand

This repository contains a simple single-serving site that randomly changes the background color of the page, text, font style, font size, font color, and text-align. All this was done with the help of the PHP function rand. Also, there is a built-in PHP function count that counts the elements of the array, so regardless of the number of elements in the array, they will always be displayed randomly every time the web page is opened or refreshed. With array_delete function color matching for text and background is prevented.

Of course, this example can be used to modify anything else using the rand function.


To check how it looks, click on the preview and then on the green run button.

PREVIEW

About

PHP single-serving site which use random data for change the background color of the page, text, font style, font size, font color, and text-align

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages