Skip to main content

Posts

Showing posts from August, 2020

PHP Comment Style Guide and Coding Standards

W elcome to PHPBash. In this PHP Tutorial, we will learn about Basics PHP Comments.  In our  Previous Tutorial , we learn about basics of PHP syntax as well fundamentals of comments. Basically, PHP Comments are part of PHP Program which is not executed by PHP  parser while Executing PHP Program. PHP Comments can be Single line or multiline.  PHP Comment Style Guide and PHP Coding Standards In this, PHP tutorial covers all the topics of Basics of  PHP Comments styles and Coding Standard  like 1.  What are Comments in PHP Programming Language?  2. Need of PHP Comments 3. Types of PHP Comments 4. PHP Comment Styling 5. PHP Comments Standards with Best Practices 6.PHP Comments Example with Valid and Invalid Examples Now let's start  this tutorial with understanding  What are Comments in PHP Programming Language? What are Comments in PHP Programming Language?  In PHP, Comments are part of PHP program or script which is not Interpreted by PHP Parser while Executing PHP Script or PHP prog

PHP 7 Data Types: Scalar, Compound and Special

W elcome to PHPBash. In this PHP Tutorial, we will learn about Basics of PHP Data Types.  In our  Previous Tutorial , we learn about different concepts related to PHP variables.  Data types define what kind of data or values a variable will hold. With help of data types, computer can understand the type of data stored in variable and as per its type, memory will be allocated. so data types are very important and crucial concept in any programming language.  In PHP 7, there are total 10 different data type s. They are divided in to Scalar Types, Compound Types and Special Types. As PHP is loosely typed, there is no need to specify data type while declaring variables. PHP Handles typecasting or PHP Juggling automatically. You can read more about it, in this tutorial. In this, PHP tutorial covers all the topics of Basics of  PHP 7 Data Types  like 1.  PHP 7 Data Types and their Sub Types Now let's start  this tutorial with understanding  PHP 7 Data Types and  their  Sub Types. PHP 7

PHP Constants

W elcome to PHPBash. In this PHP Tutorial, we will learn about Basics of PHP Constants.  In our Previous Tutorial , we learn about different concepts related to PHP variables. A constant is a name or an identifier with a fixed or permanent value. In Programming, Both constants and variables are used for storing data or values and act as container. Constants are more like variables with one difference that, Constants can not be modified/Changed during execution of program.  PHP Constants In this, PHP tutorial covers all the topics of Basics of PHP Constants  like         1.  PHP Constants         2.  Using the PHP define() method.         3.  Using the PHP const keyword.         4.  PHP 7 Constant Arrays         5.  PHP Global Constants         6.  PHP constant() Function          7. PHP Class constant array Now let's start  this tutorial with understanding P HP Constants and their use .  PHP Constants A constant is an identifier whose value cannot be changed or modified during the