PHP Tutorial

What is PHP?

PHP, which is recursive acronyms for “PHP Hypertext Preprocessor”, is a server-side, HTML embedded scripting language used to create dynamic Web pages. Much of its syntax is borrowed from C, Java and Perl with some unique features thrown in. The goal of the language is to allow Web developers to write dynamically generated pages quickly. …

What is PHP? Read More »

Why PHP?

Why PHP? it’s no secret that there are alternatives to PHP: ASP, JSP, Cold Fusion, and Perl, to name just a few. While each of these languages has differences in syntax and structure, when it comes down to it, they can all produce the same results. So, why would you choose PHP over other options? …

Why PHP? Read More »

First PHP script

First PHP script Every language has it… First PHP script the basic “Hello, World!” script. It is a simple script that only displays the words“Hello, World!”. Over the years this has become the traditional phrase to use when writing your first program.   According to Wikipedia, it’s mainstream usage spawned from an internal memorandum in …

First PHP script Read More »

PHP Syntax

PHP Syntax You cannot view the PHP source code by selecting “View source” in the browser – you will only see the output from the PHP file, which is plain HTML. This is because the scripts are executed on the server before the result is sent back to the browser.   Now that you are …

PHP Syntax Read More »

PHP comments

When programming in any language the process of adding comments involves writing notes alongside the code to describe what the code does and how it works. The comments are ignored by the PHP pre-processor when executing a script and are purely for human consumption.In Short Comments are used as a note of the code for …

PHP comments Read More »

PHP Operators

There are three types of operators. Firstly there is the unary operator which operates on only one value, for example ! (the negation operator) or ++ (the increment operator). The second group are termed binary operators; this group contains most of the operators that PHP supports.The third group is the ternary operator: ?:. It should …

PHP Operators Read More »

PHP Variables

Variables are used for storing values, such as numbers or strings , so that they can be used many times in a script.   A large part of writing scripts, and programming, involves the handling and manipulation of data. Data have forms, ranging from single characters, words and sentences to integers, floating point numbers and …

PHP Variables Read More »

PHP String

A string variable is used to store and manipulate a piece of text.   Working with Strings   String variables are used for values that contains character strings. In this tutorial we are going to look at some of the most common functions and operators used to manipulate strings in PHP. After we create a …

PHP String Read More »

PHP Arrays

An array is a data structure that stores one or more values in a single value. For experienced programmers it is important to note that PHP’s arrays are actually maps (each key is mapped to a value).   PHP Arrays provide a way to group together many variables such that they can be referenced and …

PHP Arrays Read More »