Author Archives: Help_adm

PHP Arrays

An array can store one or more values in a single variable name. What is an array? When working with PHP, sooner or later, you might want to create many similar variables. Instead of having many similar variables, you can store the data as elements in an array. Each element in the array has its… Read More »

Category: PHP

PHP Switch Statement

The Switch statement in PHP is used to perform one of several different actions based on one of several different conditions. The Switch Statement If you want to select one of many blocks of code to be executed, use the Switch statement. The switch statement is used to avoid long blocks of if..elseif..else code. Syntax… Read More »

Category: PHP

PHP If…Else Statements

The if, elseif and else statements in PHP are used to perform different actions based on different conditions. Conditional Statements Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. if…else statement – use this statement if you want… Read More »

Category: PHP

PHP Operators

Operators are used to operate on values. PHP Operators This section lists the different operators used in PHP. Arithmetic Operators Operator Description Example Result + Addition x=2x+2 4 – Subtraction x=25-x 3 * Multiplication x=4x*5 20 / Division 15/55/2 32.5 % Modulus (division remainder) 5%210%810%2 120 ++ Increment x=5x++ x=6 — Decrement x=5x– x=4 Assignment… Read More »

Category: PHP

PHP String

A string variable is used to store and manipulate a piece of text. Strings in PHP String variables are used for values that contain character strings. After we create a string we can manipulate it. A string can be used directly in a function or it can be stored in a variable. Below, the PHP… Read More »

Category: PHP

PHP Variables

Variables are used for storing values, such as numbers, strings or function results, so that they can be used many times in a script. Variables in PHP Variables are used for storing values, like text strings, numbers or arrays. When a variable is set it can be used over and over again in your script… Read More »

Category: PHP

PHP Syntax

PHP code is executed on the server, and the plain HTML result is sent to the browser. Basic PHP Syntax A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document. On servers with shorthand support enabled you can start a scripting block… Read More »

Category: PHP

PHP Installation

What do You Need? If your server supports PHP you don’t need to do anything. Just create some .php files in your web directory, and the server will parse them for you. Because it is free, most web hosts offer PHP support. However, if your server does not support PHP, you must install PHP. Here… Read More »

Category: PHP

Introduction to PHP

PHP is a server-side scripting language. What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) PHP is an open source software PHP is free to download and… Read More »

Category: PHP

PHP

Introduction to PHP PHP Installation PHP Syntax PHP Variables PHP String PHP Operators PHP If…Else Statements PHP Switch Statement PHP Arrays PHP Looping PHP Functions PHP Forms and User Input PHP $_GET PHP $_POST PHP Date() PHP Include File PHP File Handling PHP File Upload PHP Cookies PHP Sessions PHP Sending E-mails PHP Secure E-mails… Read More »

Category: PHP