Support Us on Patreon

Become a Patron for as little as $1 to gain access to exclusive video features, behind the scenes and Patron-only contests.

Beginner-to-Intermediate PHP Part 2: Counting with PHP

  • Episode 235
  • March 20, 2012

We're learning to program web applications on Category5 TV, and this week Robbie and Hillary take you through a while() statement in PHP to count up from zero.

This episode is sponsored in part by: Eco Alkalines, Garden Gate Farms and Cordery Electric.

Topics Covered:

  • Robbie Ferguson and Hillary Rumball present live from the Category5 studios in Barrie, Ontario.
  • Viewer Postcards from West Virginia and Melbourne Australia.
  • The new Mobile Site quicklink is
  • Robbie apologizes that many emails were not receive due to his focus on the upcoming release of the new Category5 TV web site.
  • {play 9:56}Viewer Testimonials
  • {play 11:57}Viewer Questions
  • Viewer Question: What's happening with the 9-hour video recording of the Category5 server build?
  • Viewer Question: Thank you for Category5 TV - it has helped me a lot with Linux and specifically, Ubuntu. Would you demonstrate at some point how to install programs on Linux that are in the bz2 format?
  • Searching for and installing applications with Synaptic Package Manager.
  • Viewer Comment: make usually works for me when installing applications in Linux.
  • Viewer Question: I have a small Atom system I used to use for audio production. Do you have any suggestions as to what I could do with it?
  • Viewer Question: I saw one of Eric's tweets and wanted to see him when he was playing at Doc Malones in Barrie, but couldn't travel the extra 4,459km in time for the show. Is there anywhere on the web where we can enjoy Eric's music?
  • {play 28:44}Top Stories from the Category5.TV Newsroom
  • {play 33:57}Feature: PHP Develpoment Part 2: Counting with PHP.
  • Opening and closing PHP tags.
  • Setting up a string to hold your number.
  • Setting a static number value to a string in PHP.
  • Using basic algebraic addition to increment a number in PHP.
  • Creating our first PHP while() loop to automatically increment a number.
  • Using simplified PHP commands to cut down on needless code.
  • Using counting to flow through the data in an array which is sorted by numerical key.
  • Stylizing content output in a PHP while() loop.
  • Viewer Question: How would you make just the word "Title" bold, but leave the number not bold?
  • Using PHP's explode() function to separate a string or array key value by a particular character or set of characters.
  • Viewer Question: I have some experience with bash and perl programming in Linux, and Visual Basic in Windows. I can't quite grasp why you're adding the association ['file'] to an array. Why is that there?
  • Understanding the structure of an associative array. [demo.odt]

Links to Relevant Web Sites:

  • Host: Robbie Ferguson
  • Co-Host: Hillary Rumball


Technology TV is
Please support our Kickstarter

Being Watched

Twitter Posts

Login to Category5

Error message here!

Hide Error message here!

Forgot your password?

Register on Category5

Error message here!

Error message here!

Hide Error message here!

Lost your password? Please enter your email address. You will receive a link to create a new password.

Error message here!

Back to log-in