by charles john | Apr 16, 2019 | Articles and Short Tutorials, Web Design Tutorials and Articles
Hello guys! I am Charles. I know this topic is one of the basic things every aspiring programmer should know. Of course while designing your site ,you ought to know that css files should be kept apart from your html file. Now how do you allow your css to have impart...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
Superglobals were introduced in PHP 4.1.0, and are built-in variables that are always available in all scopes. PHP Global Variables – Superglobals Several predefined variables in PHP are “superglobals”, which means that they are always accessible,...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
The elements in an array can be sorted in alphabetical or numerical order, descending or ascending. PHP – Sort Functions For Arrays In this chapter, we will go through the following PHP array sort functions: sort() – sort arrays in ascending order rsort()...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
An array stores multiple values in one single variable: Example <?php $cars = array(“Volvo”, “BMW”, “Toyota”); echo “I like ” . $cars[0] . “, ” . $cars[1] . ” and ” . $cars[2]...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
The real power of PHP comes from its functions; it has more than 1000 built-in functions. PHP User Defined Functions Besides the built-in PHP functions, we can create our own functions. A function is a block of statements that can be used repeatedly in a program. A...
by dayo ade | Oct 18, 2017 | Articles and Short Tutorials, Web Design Tutorials and Articles
PHP for loops execute a block of code a specified number of times. The PHP for Loop The for loop is used when you know in advance how many times the script should run. Syntax for (init counter; test counter; increment counter) { code to be executed; } Parameters:...