Tag Archives: php

An introduction to OOP

Note: These posts are part of a series written by an Ideal Websites employee, who is currently training to become a PHP developer. Last time I spoke about functions, and while there is still a fair bit to say on the matter, I’m going to move forward a little and talk about OOP, as it’s [...]
Posted in PHP Basics | Also tagged , , | 1 Comment

More Loops

Last time we went over the while() loop, which is incredibly useful for reusing the same code. However, while the while() is effective, it will not run if the PHP gives it no reason to. The do-while() loop puts the condition at the end of the process, and so the PHP will run the loop before checking to see if it should.
Posted in PHP Basics | Also tagged , , , , | Leave a comment

Loops

In PHP, a loop is a control structure that allows you to repeat the same section of PHP over and over again. For this reason, it can be a little risky as getting stuck in an infinite loop will most likely crash your browser, if not your entire computer.
Posted in PHP Basics | Also tagged , , , | Leave a comment

Switch Case

Note: These posts are part of a series written by an Ideal Websites employee, who is currently training to become a PHP developer. In the last post I went over if() statements, which are an effective way implement an either/or type process into your application, but if the process is more complex than that, it [...]
Posted in PHP Basics | Also tagged , , , | Leave a comment

Logical Operators and if() Statements

Note: These posts are part of a series written by an Ideal Websites employee, who is currently training to become a PHP developer. Now that we have covered the basic comparison operators (as well as the ‘===’ operator which was brought to my attention via a comment. It represents exactly equal to, see the update [...]
Posted in PHP Basics | Also tagged , , , | Leave a comment