PHP Constants

PHP constants are similar to constant variables in other programming languages. A PHP constant holds a fixed value, which cannot be updated after declaration. PHP Constants PHP Constants are similar to the variables, and they cannot be changed or redefined once they have been created and assigned values. They remain constant across the entire program. It […]

PHP Data Types

For constructing variables, PHP supports various data types. PHP Data Types This article is all about the PHP Datatypes. Data types represent the type of data associated with PHP variables. PHP supports eight primitive data types that are divide into three types. Scalar Data types Compound Data Types Special Data Types Read Also: PHP Variables […]

PHP Echo/Print

Echo and print are both used to print the output data on the screen. The print statement is used as an alternative to echo many times. PHP Echo/Print Statement Even though echo and print statements serve the same purpose, there are certain differences between them. In this article, the reader will be able to demarcate […]

PHP Variables

Just like other programming languages, PHP has variables and constants. A variable is a storage space paired with an associated symbolic name that stores a particular value. All PHP variables start with the $ (dollar) sign, followed by the name of the variable. This article explains the usage of variables in a block of PHP […]

PHP Comments

Comments in PHP are similar to the comments used in HTML. A comment in PHP code is the non-executable part of the PHP program. But comments are handy. They can be read by someone who is editing the code, a developer working on her fellow teammate’s code, or even an amateur coder who is just […]