PHP

If – Else and Else If Statements in PHP

“IF/ELSE” conditions are part of every coding language that helps set paramaters/filters to produce desired output. Conditional statements are used to perform different actions based on different conditions. “IF” statement executes some code if one condition is true.   To read more about IF/ELSE condition in PHP, click here.

PHP

PHP Operators

  Operators are used to perform operations on variables and values. PHP divides the operators in the following groups: Arithmetic operators Assignment operators Comparison operators Increment/Decrement operators Logical operators String operators Array operators Read more about these different PHP Operators here.

PHP

Strings in PHP

String is sequence of characters…like “Welcome to iTerra.” In coding, we frequently work with strings, such as getting an input on “address” or “email-ID” in a form. In our previous blog post on Data types in PHP we talked about the syntax to create a string. In this blog post, Read more…

PHP

PHP Syntax

PHP’s Syntax is influenced and derived from many languages, it is mainly from C but pearl and java’s OOP also had a significant influence on the syntax. Even though it is often used as a pure language, PHP is primarily designed as a text processor (hence its name). Standard Tags Read more…

PHP

Constants in PHP

In one of our previous posts we talked about creating variables in PHP. In this post we will talk about constants in PHP. In programming, constants are like variables except that once they are defined they cannot be changed or undefined. In PHP, a constant starts with a letter or Read more…

PHP

Array in PHP

Arrays are a special type of variable that can contain many variables, and hold them in a list. Arrays can contain different types of variables according to your needs, and can even contain other arrays or objects as members. Arrays can be used as stacks and queues as well. PHP Read more…

PHP

Data Types in PHP

What are the data types supported in PHP? Variables can store data of different types, and different data types can do different things. PHP supports the following data types: String Integer Float (floating point numbers – also called double) Boolean Array Object NULL Resource Read more about PHP variables and Read more…

PHP

Getting started with coding in PHP

How do you start with coding in PHP? PHP is a simple language anyone can learn, with some knowledge in HTML, CSS and Javascript. PHP files (contain .php extension) can contain text, HTML, CSS, JavaScript, and PHP code. PHP code are executed on the server, and the result is returned Read more…

PHP

Creating Variables in PHP

PHP has no command for declaring a variable. It is created the moment you first assign a value to it. Rules for PHP variables: – A variable starts with the $ sign, followed by the name of the variable, A variable name must start with a letter or the underscore Read more…