i
PHP Variables
PHP Data Types
PHP Echo & Print
PHP Strings
PHP Numbers
PHP Constants
PHP Operators
PHP if...else...elseif Statements
Switch Statement
PHP Loops
PHP Arrays
Superglobals
PHP Coding Standards
PHP Form Handling
PHP Form Validation
PHP URLs Validation
PHP Form Required Validation
Complete Form Example
PHP File Functions Open/Read
PHP File Create/Write
PHP File Upload
PHP Cookies Handling
PHP Session Handling
PHP filter_var() Function
PHP Validation Filters
PHP Sanitization Filters
Using Filters
Filters Advanced
JSON
PHP Date and Time
MySQL Database
MySQL Connect
MySQL Commands-Creating a Table
MySQL Commands-Inserting The data
MySQL Commands-Prepared Statement
MySQL Commands-Selecting The Data
MySQL Commands-Where and Order By
MySQL Commands-Deleting And Updating The Data
PHP-OOP Introduction
PHP-Classes/Objects
PHP-Constructor/Destructor
PHP-Access Modifiers
PHP-Inheritance
PHP-Inheritance and Protected Access Modifier
PHP-Overriding Inherited Methods
PHP-Final keyword
PHP-Abstract Classes
PHP-Constants
PHP-Traits
PHP-Static Methods and Properties
Introduction to Functions
Defining A function
Returning Values From A Function
Dynamic Function Calls
Variable Scope
Understanding Arguments Or Parameters
Testing For A Function Existence
Returning Multiple Values From A Function
Making practical Use By Building Code Libraries For Code Re-usability
Using Include() And Require()
In PHP, we work with all types of information, and when we write some complex programs and functions, we will deal with different types of data and information. So, let us discuss different types of data we can work with the php script and program, and we can represent inside the php code.
PHP supports below data types.
String – It is plain text such as name, location, book etc. Use open and closed quotation marks whenever you are working with string. E.g. $phrase =" Be what you are”.
Numbers – Numbers can be two types, i.e. an integer and decimal numbers. Integer will be a whole number such as $age = 30; for integers and $cga = 78.9; for floating numbers.
Boolean – Boolean is a true or false value. Many times, while programming, we need to work with true or false values, and hence, we use the variables with Boolean type. For e.g. $IsMale = true;
NULL – Whenever a variable has no value assigned to it or created without a value, it will have Null value.
Arrays – Arrays are used when we want a collection of values in an indexed way, and a single variable can store multiple values using arrays. E.g. $Weekday = array("Monday"," Tuesday"," Wednesday"," Thursday"," Friday");
Objects – Object is an instance of a class, and it can have values and functions specified to any class, and it should be declared. Object defines information on how to process the data or data itself.
Resources – It is not the actual data type, but it stores the references to the resources and functions that are outside PHP such as database connections.
Don't miss out!