PHP: Intro to Working with Variables

In this PHP tutorial, we learn how to work with variables.  We walk through preforming some simple calculations and outputting the data to the web browser. Video Tutorial Example Project Code <html> <body> <h1>Working with Variables</h1>...

PHP: Case Sensitivity in Functions & Variables

In many languages, the type of case we use matters.  For example: eCho and echo, could mean two different things.  In PHP, commands are not case-sensitive.  This makes coding easy, but I personally like to standardize on using all lower case, when working on projects....

Comments in PHP

As we continue our PHP series, we learn that we live and die by good or bad documentation.  The practice of using comments in any project you do is crucial. Good comments are just as important as the program functioning correctly. Below are a few examples of comments...

Basics of PHP: Starting a Script and Using Echo

In this video tutorial, we will get our feet wet and program our first PHP script.  It is not flashy, but it is a start to learning how PHP works.  We also learn how to do a single line comment in this tutorial.  The command we will learn is called echo.  Echo...

Getting Your Computer Setup to Write PHP Code

We have started a great series on how to program in PHP.  PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. PHP is very...

Using if, else, string, and char Recap | C++

In the last several tutorials we covered a lot of information quickly. In this tutorial we will recap a variety of the components that we have learned so far. We will create a program that will input and output a string variable.  We will use an if statement to...

Creating and Using Functions | C++

Functions are useful in a variety of programming applications.  On the basic level, functions allow us to send values to functions, which then preform computations and return a value.  In our previous tutorials we have become familiar with the main() function.  In...

do while Loops | C++

In the last two tutorials we talked about the for loop and the while loop.  Both of these require a condition to be met to run a set of statements.  In some circumstances you may want to run a statement at least once even if a condition is not met.  For those...

while Loops | C++

In the last tutorial we learned about for loops.  In this tutorial we review while loops.  While loops are very simple loops.  They loop while a condition (ex: x > 11) is met.  One major difference between for loops and while loops is that while loops do not...

for Loops | C++

Loops are useful in a variety of applications.  For loops are very helpful and used frequently.  There are three main components to a for loop: variable initialization, condition, variable update. The basic construct to use a for loop is the following:  for(variable...

Intro to If Statements | C++

We are making some good progress into the framework on how programs store data and preform simple calculations.  Now lets introduce a way that our programs can make logical decisions based on conditions. What is a condition?  A simple example is if X is greater than a...

Types of Variables

So far in our C++ tutorials we have covered the int variable, but there are many more that we need to cover.  In this video tutorial we will learn a few more: unsigned int, long, double, float, char, string, and...

Pin It on Pinterest