by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
PHP while loops execute a block of code while the specified condition is true. PHP Loops Often when you write code, you want the same block of code to run over and over again in a row. Instead of adding several almost equal code-lines in a script, we can use loops to...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
The switch statement is used to perform different actions based on different conditions. The PHP switch Statement Use the switch statement to select one of many blocks of code to be executed. Syntax switch (n) { case label1: code to be executed if n=label1;...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
Conditional statements are used to perform different actions based on different conditions. PHP Conditional Statements Very often when you write code, you want to perform different actions for different conditions. You can use conditional statements in your code to do...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
Constants are like variables except that once they are defined they cannot be changed or undefined. PHP Constants A constant is an identifier (name) for a simple value. The value cannot be changed during the script. A valid constant name starts with a letter or...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
A string is a sequence of characters, like “Hello world!”. PHP String Functions In this chapter we will look at some commonly used functions to manipulate strings. Get The Length of a String The PHP strlen() function returns the length of a string. The...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
A string is a sequence of characters, like “Hello world!”. PHP String Functions In this chapter we will look at some commonly used functions to manipulate strings. Get The Length of a String The PHP strlen() function returns the length of a string. The...