Monthly archives: February, 2017

function in php

PHP functions are similar to other programming languages. A function is a piece of code which takes one more input in the form of parameter and does some processing and returns a value. You already have seen many functions like fopen() and fread() etc. They are built-in functions but PHP gives you option to create …

Array in php

What is PHP Arrays Arrays are complex variables that allow us to store more than one value or a group of values under a single variable name. Let’s suppose you want to store colors in your PHP script. An array is a data structure that stores one or more similar type of values in a …

control structures in php

Control Structures Control Structures are loops, like for, and conditionals, such as if. Most of these will be familiar to the javascript programmer, and this page is basically a list. The following exist in php: if and else These are exactly the same as javascript and other languages. if ($a==$b) { print “The same”; } …