Tag Archives: PHP

PHP Array All Functions

PHP Array Functions The following list show the different function used in an array. – array_change_key_case : Changes all keys in an array – array_chunk : Used to split an array into pieces. – array_column : Used to return the values from a single column in the input array – array_combine : Used to creates an array by using one array for keys and another for its values. – array_count_values : Used to counts all the values of… Read More »

PHP Array Sort Functions

The elements in an array can be either be sort ascending, descending, alphabetical and numerical order. Lets discuss the different sort function used in PHP. – sort() – used to sort arrays in ascending order. – rsort() – used to sort arrays in descending order. – asort() – used to sort associative arrays in ascending order as per values. – ksort() – used to sort associative arrays in ascending order as per key.… Read More »

PHP Array

Introduction to Array When creating long, complex programs, it sometimes becomes difficult to access certain elements in a program. for example there is a limitation for using variables in a program: when you declare a variable, you can assign only one value to it. In certain case , you may want to declare hundreds of variables and… Read More »

PHP Loops

Introduction to Loops in PHP Using Loops in PHP Loops are an vital part of a programming language. Typically the need to use loops in a program occur when you want to execute a piece of code repeatedly until a desired condition is achieved. There are many control structures that can be use to implement looping in a program. The While… Read More »

PHP Control Structures

Introduction to Control Structures When you start writing programs in PHP, you will realize the importance of using control structures. They are use to control how a structure will be executed, adding useful functionality to the PHP code and making it more flexible. Condition and Statements Control structure are usually based on condition and therefore always have condition associated with them… Read More »