Code Snippets

A collection of snippets of code in various languages that may help illustrate various concepts in logic, functionality or application.
Leave blank for all. Otherwise, the first selected term will be the default instead of "Any".

Count to Ten in PHP


Counting to ten: Has a specific starting place (1), a specific ending place (10), and an increment value as it progresses (1). Forms a perfect venue for learning about for-loops in PHP!