Category: php

JSON PHP

JSON is a data interchange format contains name-value pairs. To process JSON, PHP has following in-built functions. json_encode() This json_encode…

include PHP

PHP allows to use one PHP or HTML file into other PHP files, it has following advantages To re-use files,…

Callback PHP

Callback in PHP, is a function which is passed to another function as an argument, This function executes the callback…

functions PHP

PHP has in-built functions and also allows to create user-defined functions. Following are the advantages of using functions. In PHP…

continue PHP

continue in PHP is used to skip the current loop cycle or iteration. It should be used with condition inside…

break PHP

Break is used in switch statements or inside loops. It allows program execution control to jump out of switch or…

Associative arrays PHP

In PHP, Associative arrays are key and value pairs. where key is any user defined string and value can be…

Indexed array PHP

Indexed array stores value in numeric index always starts with 0, to n-1, where n is number of elements –…

Array PHP

Array is used to store value of same data type in a single variable. In PHP, arrays are ordered map…