PHP Array Functions

PHP provides various array functions to access and manipulate the elements of array. The important PHP array functions are given below. eg array_change_key_case – Changes the case of all keys in an array array_chunk – Split an array into chunks array_column – Return the values from a single column in …

Read More »

PHP Arrays

An array is a data structure that stores one or more similar type of values in a single value. For example if you want to store 100 numbers then instead of defining 100 variables its easy to define an array of 100 length. There are three different kind of arrays …

Read More »

PHP Functions

PHP function is a piece of code that can be reused many times. It can take input as argument list and return value.  Advantage of PHP Functions Code Reusability: PHP functions are defined only once and can be invoked many times, like in other programming languages. Less Code: It saves …

Read More »

Control Statement – PHP Switch

PHP switch statement is used to execute one statement from multiple conditions. It works like PHP if-else-if statement. The following points cover for switch statement- The default is an optional statement. Even it is not important, that default must always be the last statement.There can be only one default in a switch statement. More …

Read More »

PHP Operators

PHP Operator is a symbol i.e used to perform operations on operands. In simple words, operators are used to perform operations on variables or values. $var = 5+5; //+ is the operator and 5,5 are operands PHP Operators can be categorized in following forms: Arithmetic OperatorsAssignment OperatorsBitwise OperatorsComparison OperatorsIncrementing/Decrementing OperatorsLogical …

Read More »