how to create cookies in php

What are the  Cookies -: Cookies are small files which are stored on a user’s computer.Cookies are store on user side in the computer. They are designed to hold a modest amount of data specific to a particular client and website and can be accessed either by the web server or the client computer. Cookie’s are… Read More »

file handling in php

What is File Handling in php -: A file represents in a sequence of bytes on the storage disk where a group of related data’s are  stored. File is created for permanent storage of data. php provide a number of functions that helps to perform basic file operations. These are the function  in php use the file handle… Read More »

how to use string in php

String in php-:  String is a sequence  characters in php like a “hello netnic “. String is  used to store and manipulate text and php supports only 256-character set and so that it does not offer native Unicode support. There are 4 ways to specify a string literal in php. Types of string in php-: In… Read More »

how to define array in php

Array In php -:  We need to handle a large volume of data in terms of reading,processing and printing. to process such large amount of data we need a powerful data type that would facilitate efficient sorting accessing and manipulation of data items. An array is a fixed size size sequenced collection of elements of the… Read More »

function in php

Php function -: Like any other language function are same to other function.The real power comes its from php function. Php has more then 1000 function. A function is a small code which takes one more input in the form  of parameter and does some processing and return a value. In other words we can say… Read More »

how to use loop in php

Looping in php -:  Suppose if we want to calculate all sum of integer 1 to 100 or more then 100. It is not possible in  IF statement. This will be written in this way sum = sum + n*n; This calculation called looping in php. In looping a sequence of statement are executed until some… Read More »

conditional statements in php

Condition Statement -: we have seen php program is a set of statements which are normally executed sequentially in the order in which they appear.this happens when no option or no repetition for certain calculation are necessary. When we are writing a code in a program then there are some time we get some condition… Read More »

how to define data type in php

Data-Type introduction -: Data types in “php ”language is rich in its data type. The storage representation and machine instruction to handle constant differ from machine to machine. the variety of data types available allow to the programmer to select the type approach appropriate to the needs of the application as well as the machine.… Read More »

how to use operator in php

Operator in php- Like any other programming language operator play a very important role in php. Operator is a symbol as like +, -, *, / , etc. Operators are used to perform operations on variables and values. Php support a rich set of built in operator we have already used several of them such… Read More »