Learn PHP Programming By Building Projects
PHP Tutorial - 11 - if condition in php - how to use if condition in php
Hide/Show description
PHP Conditional Statements
Very often when you write code, you want to perform different actions for different conditions. You can use conditional statements in your code to do this.
In PHP we have the following conditional statements:
if statement - executes some code if one condition is true
if...else statement - executes some code if a condition is true and another code if that condition is false
if...elseif....else statement - executes different codes for more than two conditions
switch statement - selects one of many blocks of code to be executed
-~-~~-~~~-~~-~-
Please watch: "Php hacks : How to create website step by step using php and mysql : part 8"
https://www.youtube.com/watch?v=C64_qFaIBp8
-~-~~-~~~-~~-~-
-
PHP Tutorial:1: Introduction to PHP Programming : What is PHP : Introduction to PHP:PHP Introduction
PHP Tutorial - 2 - xampp install - how to install xampp - How to Install XAMPP Server on Windows 10
PHP Tutorial - 3 - php data types - Data Types in PHP - How to Work With Data Types in PHP
PHP Tutorial - 4 - php array - how to create an array in php - how to create array in php
PHP Tutorial - 5 - multidimensional array php : how to create multidimensional array php
PHP Tutorial - 6 - object php - Object in PHP - how to create object in php
PHP Tutorial - 7 - php variable scope - static keyword and static function and static variable
PHP Tutorial - 8 - variable global php - global variables and local variables in php
PHP Tutorial - 9 - php class constant
PHP Tutorial - 10 - php operator - Logical Operators - how to use operators in php
PHP Tutorial - 11 - if condition in php - how to use if condition in php
PHP Tutorial - 12 -how to create while loops in php php while loop - do while loop
PHP Tutorial - 13 - php for loop - php foreach loop- how to create for loop in php
PHP Tutorial :14:php switch statement : switch statement in php : How to use switch statement in php
PHP Tutorial : 15 : php include : file include in php : how to include file in php :include require
PHP Tutorial : 16 : how to create function in php: php function : Creating a Function in PHP
PHP Tutorial:17: how to create a form in php :Creating a registration form using PHP:create php form
PHP Tutorial : 18 : how to create a form in php : Creating a registration form using PHP: part 2
PHP Tutorial : 19 : how to create a form in php : Creating a registration form using PHP : part 3
PHP Tutorial : 20 : How to use get and post method in php : php get post : get post in php :get post
PHP Tutorial : 21 :How to create database in php : create mysql database : how to create database
PHP Tutorial - 22 - PHP Tutorials : How To CRUD with PHP and MySQL
PHP Tutorial - 23 - PHP Tutorials: how to insert date in mysql using php
PHP Tutorial - 24 - php mysql select database
php tutorial - 25 - how to build php website
PHP Tutorial - 23 - PHP Tutorials: project in php : cleaning our crud website
PHP Tutorial - 25 - PHP Project : how to update database in php : PHP Update Data in MySQL : part 1
PHP Tutorial : 26 : PHP Project : how to update database in php : PHP Update Data in MySQL : part 2
PHP Tutorial : 27 : PHP Project : how to update database in php : PHP Update Data in MySQL : part 3
PHP Tutorial : 28: PHP Project : how to delete values from database in php :delete query in php form
PHP Tutorial 29: PHP Project:how to check username from database using php: Check if Username Exists
PHP Tutorial : 30 : PHP Project : how to confirm password in php : PHP MySQL Confirm Password
PHP Tutorial : 31 : PHP Project : PHP MySQL Minimum Password Length : Minimum Password Length in php
PHP Tutorial : 32 : PHP Project : how to create search engine in php : Make a Search Engine : part 1
PHP Tutorial : 33 : PHP Project : how to create search engine in php : Make a Search Engine : part 2
PHP Tutorial : 34 : PHP Project : how to create search engine in php : Make a Search Engine : part 3
PHP Tutorial : 35 : PHP Project : how to create pagination in php : pagination in php:paging: part 1
PHP Tutorial:35 : PHP Project : how to create paging in php : how to create pagination in php:part 2
PHP Tutorial : 37 : PHP Project : how to create pagination in php : pagination : part 3
PHP Tutorial : 38 : PHP Project : how to create pagination in php : pagination : part 4
PHP Tutorial :39 :PHP Project:How to create a login system in PHP :login php:php login system:part 1
PHP Tutorial :40 :PHP Project:How to create a login system in PHP :login php:php login system:part 2
PHP Tutorial : 41 : PHP Project : PHP MySQL Md5 Encryption : how to use md5 encryption in php :md5
PHP Tutorial :42 : PHP Project : How to upload a file in PHP : How to Upload Files Using PHP :part 1
PHP Tutorial :43: PHP Project:How to upload a file in PHP:PHP file upload :Upload file in php:part 2
PHP Tutorial :44 : PHP Project : how to send email in php :php mail :how to send an email : part 1
PHP Tutorial:45:PHP Project: how to send email in php:how to send email in php from localhost:part 2
PHP Tutorial:46:PHP Project:how to use session in php:php session:session php: Session in PHP:part 1
PHP Tutorial:47:PHP Project:how to use session in php:php session:session php: Session in PHP:part 2
PHP Tutorial : 48 : PHP Project : how to use session in php : php session:session php : part 3
PHP Tutorial : 49 : PHP Project : how to use session picture in php : Profile Image in php : part 1
PHP Tutorial :50: PHP Project : how to update session picture in php : Profile Image in php : part 1
PHP Tutorial :51: PHP Project : how to update session picture in php : Profile Image in php : part 2
PHP Tutorial :52: PHP Project : how to update session picture in php : Profile Image in php : part 3
PHP Tutorial :53: PHP Project : how to update session picture in php : Profile Image in php : part 4
PHP Tutorial :54 : How to Use MySQL Date and Time Functions : how to display date and time using php
PHP Tutorial : 55 : PHP Project : How to Use Cookies in PHP : Php Cookies : part 1
PHP Tutorial : 56 : PHP Project : How to Use Cookies in PHP : how to create Cookies in php : part 2
PHP Tutorial : 57 : PHP Project : How to Use Cookies in PHP : how to create Cookies in php : part 3
PHP Tutorial : 58 : PHP Project : Object Oriented Programming in PHP : Object Oriented PHP
PHP Tutorial:59: PHP Project : how to create classes and objects in php : Classes and Objects in php
PHP Tutorial :60:PHP Project:public private and public variables in php : public : private : private
PHP Tutorial : 61: PHP Project : static property in php : Static Methods and Properties in PHP
PHP Tutorial :62 : PHP Project:class constant:class constant in php:how to use class constant in php
PHP Tutorial : 63 : How To Create Constructor and Destructor in PHP:Constructors and Destructors
PHP Tutorial :64 : PHP Exception Handling :Exception Handling in php:Throw The Exception in PHP
PHP Tutorial :65 : how to create try catch in php :php try catch :try catch in php:exceptions in php
PHP Tutorial :66 : PHP Project : how to create custom exception in php : php custom exception
PHP Tutorial: 67:PHP Security: SQL Injection:How to Secure Your Website : web security tutorial