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

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

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…

PHP

What is PHP?

PHP stands for Hypertext Preprocessor. It is a server-side scripting language mainly used for Web development. PHP was developed first by Rasmus Lerdorf in 1994. PHP has both procedure programming language and OOP language features. Advantages of PHP – – It is Open source – developed and maintained by a Read more…