Home Tutorial Php Phpbasics Tutorial PHP Basics Tutorial Index

 
 

PHP Basics Tutorial Index
Posted on: November 3, 2009 at 12:00 AM
Advertisement
PHP Basics Tutorial Index:Main concern of this tutorial is to provide you short and effective description of PHP. If you want to learn the basics of PHP in short while, this tutorial is perfect for you.

PHP Basic Tutorial:
Learn the Basics of PHP scripting through our PHP Basic Tutorial series. The PHP Basic Tutorial is design for new programmers who want to learn the PHP program ASAP. These tutorials will help you grasping the PHP Basics easily. The PHP Basics tutorial is supported with the example code.

Let's start learning the Basics of PHP quickly.


Basics of PHP Programming Language

* Write simple PHP program to display the current date

PHP Date Function with Example
PHP Date Example: In this tutorial you will get to know about how to write a program in PHP, in addition this page has given important links, which will help you to learn PHP
 
PHP WAMP Server Installation
PHP WAMP Server Installation: This PHP tutorial will help you in installation of WAMP server.
 
Use of Comment Function in PHP
Use of Comment: In this tutorial you will know about comments, why should we use comment and how? Find different types of comments used in PHP.
 
PHP Variable
PHP Variable: In this PHP tutorial you will come to know about the basic things of variables and how to print the special symbols like double quote, variable name etc.
 
PHP Array
PHP Array: In this tutorial you will come to know about PHP array, several examples will help you to know array. Examples will help you to learn numeric array, associative array etc.
 
PHP Mathematical Operation
PHP Mathematical Operation: In this tutorial you will learn about various mathematical operations supported by PHP. Examples will illustrate various mathematical operations
 
PHP Random Number
PHP Random Number:In this tutorial you will learn about generation of random number in PHP. A random number is becoming more useful these days, like captcha, statistical sampling, cryptography
 
PHP User Defined Function
PHP User Defined Function: In this tutorial you will get to know about the user defined functions, how to declare, call, pass parameters etc. Examples will help you to go through user-defined functions.
 
PHP Form
PHP Form: In this tutorial you will learn how to pass any data from a html page to a php file, and how to use all those data. To do this we need at least two files one is html file and a php file.
 
PHP Loop Function
PHP Loop: In this tutorial you will come to learn about loops supported by PHP, such as: for, while, do-while, foreach etc. in addition this tutorial also provides an example of recursion.
 
PHP Conditional Statement
PHP Conditional Statement: PHP support various conditional statements like if, if else, if elseif, switch case,ternary operator etc. In this tutorial you will get to know about these conditional statements in detail, examples will help you to learn these conditional statements.
 
PHP File Handling
PHP File Handling: PHP supports file handling with fclose, fopen, feof etc. functions. This tutorial will let you know about every facet of file handling. The table will introduce you with the various mode of file opening.
 
PHP Encryption
This tutorial will explain the various ways to encrypt data. When we develop a web-site application then at first we need to develop few preliminary web pages like registration, login etc. It is always been suggested to store the passwords in encrypted form. In the current tutorial we will explain the same. Various examples will help you to understand the similarity as well as the differences of methods.
 
PHP Variable Server
This tutorial will explain the $_SERVER variable of PHP. $_SERVER is an array which is used to display the server and environment related information. It contains information such as headers, paths, and script locations. The entries in this array are created by the server. Various examples will help you to understand the similarity as well as the differences of methods.
 
PHP Constant
In this tutorial you will come to know about constant in php, . You can store any kind of value which is not intend to change like mathematical constants like value of pi, paths to files etc.
 
PHP Sort Array
In this tutorial you will come to know about the php array. Sometimes we need to store data in a single entity called Array, unlike in other language in PHP, an array can store values of different datatype. In the following examples we will learn how to create array, associative array, how to sort values of an array, and how to sort the keys of an associative arrays are given.
 
PHP Control Statement
PHP Conditional statements helps us to perform different actions for different decisions. You can use conditional statements to control the flow of the program according to the requirement of the program.
 
PHP While Loop
In the current tutorial we will study while loop statement in PHP. In programming language we need to use loops for executing a set of instruction more than one time, there are mainly three types of loops are used namely for, while and do while. Apart from these there are some loops are used in different languages like until, for each etc.
 
PHP Do While Loop
In the current tutorial you will come to know about Do-While loop function in PHP. The Do-While loop function is another type of loop which runs at least once, since this loop checks the condition after executing the code within.
 
PHP For Loop Function
In this current php tutorial we will study about for loop using in PHP program. We will study about different formats of for loop, how to initialize the variable inside the loop, condition checking, changing the value of the variable etc. In for loop construct there are three parts...
 
PHP For Each Loop Function
In this current tutorial we will study about for-each loop in PHP.In PHP associative array gives us more power to use arrays in more effective way, like we can associate any key with a value. To fetch values from associative array we need to use for each loop.
 
PHP Function
In this tutorial you will come to know about functions in PHP.With the help of functions we can reduce time and effort, all we need to do is create a function and put the necessary coding into it and we can call this function from anywhere of the program.
 
PHP HTML Form
In the current tutorial we will study about PHP and HTML form, we will see how to send HTML . We will combine one html file and PHP file to display data. It is a very common application and you can further modify the code using some validation checking etc.
 
PHP Call By Reference
In this tutorial we will study about call by reference, in which we pass the reference of the variable and modify the values inside another function.
 
PHP SubString Function
In the current tutorial we will come to know about how to extract In PHP to find out a sub-string from of a string, we use substr() function. The format of this function is as follows string substr ( string $var , int $init [, int $len ] )
 
PHP Change Case
In this current tutorial we will study how to change a string from normal text to all lower case text, to all upper case text and convert every first character to uppercase.
 
PHP String Length
In this current tutorial we will study how to get the length of a string using strlen() function. Examples will help you to learn this in depth.
 
PHP Function Arguments
In this current tutorial we will come to know about various kinds of argument declaration in PHP function, what is the differences among those declarations etc. Examples will help you to illustrate the differences.
 
PHP Variable Functions
PHP Variable functions are used to assign a function's name to a variable. In this current PHP tutorial, we will study about that, how to declare php variable functions, how to assign, how to call via a variable and how to pass values.
 
PHP Return Statements
In this php tutorial we will study about the return statement, how to return values, array, objects from a function, examples will help you to understand these concepts precisely.
 
PHP Trigger Error
In the current tutorial we will study about trigger error method, This method is used to trigger an user level error message, it can be displayed along with the built-in-error handler, or with a user defined function. Along with it we will study what is the functionality of it, how it should be implemented etc.
 
PHP Debug Backtrace
In this tutorial we will study about another interesting feature of PHP, called debug_backtrace() method, this method helps us to generate the backtrace in PHP. You can also check the format of it and examples will help you to learn it precisely.
 
PHP Escaping HTML Tag
In this current tutorial we will study about how to escape from HTML tag, there are mainly four ways to do this, each of these tags are explained in this tutorial subsequently you can check the examples for better understanding
 
PHP Instruction Separation
In this tutorial we will study about how to separate instruction in PHP. In general we use ; sign to separate the instructions but what are the other ways are present in PHP are discussed in this tutorial.
 
PHP Comments
In this PHP tutorial we will study about different kinds of comments supported by PHP, the differences among all those comments. Examples will exemplify each type.
 
PHP Data Types
In this tutorial you will get to know about the data types supported by PHP, what is data type, types of data type etc. This is the index page of PHP Data type, subsequent pages will make every data type clear.
 
PHP Boolean Data Types
In this PHP tutorial we will study about boolean data type of PHP Programming Language. By default value of a boolean data type variable is false. Few interesting results are shown with the help of examples, based on explicit conversion to boolean.
 
PHP Integer Data Type
In this PHP tutorial you will come to know about integer data type of PHP, range of this data type, automatic type conversion to float, and examples will illustrate these concepts
 
PHP Float Number Format
In this tutorial you will study about float number in PHP, different examples will illustrate the concept
 
PHP String Function
In this tutorial you will study about strings in PHP, different ways to print a string etc. Examples will exemplify the concept of string in PHP.
 
PHP Array Type
In this current PHP tutorial we will study about PHP array type and the examples will help you to learn array more precisely.
 
PHP Object Type
This PHP tutorial will reveal some interesting concepts of object, in addition it gives you a glimpse on object in PHP.
 
PHP Resource Associates
In this tutorial you will come to know about resource in PHP, it is a new kind of variable introduced in PHP. It is used to make and keep a reference of another file or connection with the database etc.
 
PHP NULL Type
In this tutorial you will come to know about NULL values and how to make a variable NULL, how to check a variable etc.
 
PHP Type Juggling
This tutorial covers up many types of implicit and explicit type casting in PHP. Examples will illustrate the concept of PHP type juggling
 
PHP Variables Types
This tutorial is the introduction of variables, naming convention of variables in PHP etc. You will also get some useful examples on variables and reference variables etc.
 
PHP Variable Scope
This PHP tutorial is all about the scope of a variable in PHP. The Variable in PHP has a life in the program and in programming language we call it as the scope means the area in which the value of the variable is applicable.
 
PHP Variable variables
This PHP tutorial describes about variable variables in PHP. Learn how to declare & how to use in class user variable variable in PHP etc.
 
PHP Constant Function
This tutorial we will describe about the constant in PHP, how to declare, how to use etc are described in this tutorial. Examples will help you to learn this in depth
 
PHP Magic Constant
In this tutorial we will study about magic constant, in PHP there are many magic constants are available,like _LINE_, _DIR_, _FILE_ etc. These constants are case-sensitive
 
PHP Expression
In this tutorial we will study about PHP expression, expression could be anything we write. Examples in this simple tutorial will make it more clear.
 
PHP Operators
In this tutorial we will study about PHP operators, PHP supports mainly three kind of operators and every kind of operators will be described in subsequent pages.
 
PHP Arithmetic Operator
In this PHP tutorial we will study about PHP Arithmetic Operator is is used to perform addition(+), subtraction(-), Division(/), Multiplication(*), modulus(%). with variable or value. PHP Arithmetic Operator Examples will make it more clear.
 
PHP Assignment Operators
In this tutorial we will study about PHP assignment operators, types of assignment operators, how to use the operators etc are given in the example, do it by yourself, you could make necessary modifications as well.
 
PHP Increment Decrement Operator
In this tutorial we will study about increment and decrement operators, PHP follows 'C' style increment and decrement operators. Examples in this tutorial will make it more clear.
 
PHP Bitwise Operator
In this tutorial we will study about bitwise operator, bitwise operator works on bit or binary number of an integer value. Examples in this tutorial will make it more clear.
 
PHP Comparison Operator
In this tutorial we will study about comparison operator, comparison operator is used to compare two or more operands. Examples in this tutorial will make it more clear.
 
PHP Logical Operator
In this tutorial we will study about logical operator, logical operator are used when we need to check the equality between values. Examples in this tutorial will make it more clear.
 
PHP String Operator
In this tutorial we will study about string operator, string operators work only on the strings and there are only two kinds of operators are available in PHP "." and ".=", Examples in this tutorial will make it more clear.
 
PHP Array Operator
In this tutorial we will study about array operators, array operator '+' is used to get union of arrays and the rest of the operators like '==','===' works same they do on the variables. Examples in this tutorial will make it more clear.
 
PHP Instanceof Operator
In this tutorial we will study about instanceof operator, instanceof operator checks that a variable is instantiated object of a certain class or not. Examples in this tutorial will make it more clear.
 
PHP Control Structure
In this tutorial we will study about control structures, control structures are like loops (while, do-while, for,foeach),if,else,elseif. This is the index page and subsequent page will illustrate each of these.
 
PHP If Construct
In this tutorial we will study about if control structure.What is the use of if and how to implement are discussed in this tutorial.Examples in this tutorial will make it more clear.
 
PHP Else Construct
In this tutorial we will study about else in PHP. How to write else body part, what are the constraints to use else are discussed in this tutorial. Examples in this tutorial will make it more clear.
 
PHP ElseIf Construct
In this tutorial we will study about elseif in PHP. How to write elseif body part, what are the constraints to use etc. Aare discussed in this tutorial. Examples in this tutorial will make it more clear.
 
PHP Alternative Control Structure
In this tutorial we will study about alternative control structure in PHP. How to write alternative control structure is discussed in this tutorial. Examples in this tutorial will make it more clear.
 
PHP While Loop
In this tutorial we will study about while loop in PHP. How to write while loop is discussed in this tutorial. Examples in this tutorial will make it more clear.
 
PHP Do While Loop
In this tutorial we will study about do-while loop, by default do-while loop iterates at least once irrespective of condition. Examples in this tutorial will make it more clear.
 
PHP For Loop
In this tutorial we will study about for loop,probably for loop is the most easy to understand. Examples in this tutorial will make it more clear.
 
PHP For Each Loop
In this tutorial we will study about foreach loop, foreach loop is newly introduced in PHP and mainly it works on array. Examples in this tutorial will make it more clear.
 
PHP Break
In this tutorial we will study about break statement, break statement is generally used when need to discontinue or break a loop. Examples in this tutorial will make it more clear.
 
PHP Continue
In this tutorial we will study about continue statement, continue statement is just reverse of the break statement.Examples in this tutorial will make it more clear.
 
PHP Switch Case
In this tutorial we will study about switch case control structure, switch case is used when we need to match a value with every cases, generally we include break statement after every switch case. Examples in this tutorial will make it more clear.
 
PHP Return
In this tutorial we will study about bitwise operator, bitwise operator works on bit or binary number of an integer value. Examples in this tutorial will make it more clear.
 
PHP Goto
In this tutorial we will study about goto statement, goto statement helps us to move from one section to another section in a file, in PHP there are few restrictions are present for goto statement which is discussed in the current tutorial. Examples in this tutorial will make it more clear.
 
PHP Function
In this tutorial we will study about user-defined functions, declarations part, how to call a function, recursive function etc. Examples in this tutorial will make it more clear.
 
PHP Returning Values from Function
In this tutorial we will study about returning values from functions in PHP, how to return values from a function, what kind of data types are supported by the return statement are discussed in this tutorial. Examples in this tutorial will make it more clear.
 
Advertisement

Related Tags for PHP Basics Tutorial Index:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 3, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com