PHP do while loop statement with syntax and example

If specified condition is true, loop through block of code once and then repeat again and again. Syntax of PHP do while loop:



Do while loop is known as exit control loop because it check the condition at last(on exit). Do while loop executes at least once when if condition … Read more

While loop in PHP Syntax and Example

While loop in PHP is also used for repeating statements in PHP. PHP while loop check for condition if condition is true then code inside body of loop is get executed. while – As long conditions is true, it loop back again and again through block of code. While loop in PHP Syntax while (condition … Read more

PHP Switch Case Statement Syntax and Example

This statement is used if one needs to select one from multiple options. PHP Switch Case Syntax:

PHP switch case is used to select one among multiple options. inside switch we can use expression or  value inside switch there can be multiple case statement with different case value. case value must be constant. break … Read more

PHP Introduction Syntax and First Example

Her we will provide Introduction of PHP. PHP is short form of Hypertext Preprocessor. PHP was Created in 1994 by Rasmus Lerdorf To start with PHP one should need few things that are as follows:• basic knowledge of programming / scripting.  PHP Syntax:

Save your file by naming the file of “.php” extension. PHP … Read more

PHP Constants

It is just the name for the value. But its value cannot be change in the entire script once it is created. Generally its name starts with either letter or underscore (no other signs) Syntax:

Name: It specify the name of constant Value: It specify the value of constant Case-sensitive: It means whether the … Read more

How to Send Email using PHP mail() Function

Send Email using PHP mail() Function is one of the important feature of PHP. mail() is used to send email from one email address to another. Send email by PHP is very easy and without cost. PHP gives mail() function to send email.mail() function Syntax:

Output:Done! Benefits of email in web application 1. Customer … Read more

PHP File Handing

File handling is need for any web application so FILE HANDLING is an important part of PHP language. Some task to be done file needs to be processed. PHP have many function handling any kind of normal files. (Liketxt, docx, csv, jpg etc) Handle a file need to know below topics i. File create ii. … Read more

Echo and print Statements in PHP

There are two types statement in PHP by which we can generate output, one is echo and another is print. 1. Echo in PHP What is echo in php : echo is a used to print data in output screen. It can be used with or without the parenthesis.Example:

Result: PHP!I’m human being!This is … Read more

Crud operations in PHP using mysqli and PHPMyAdmin

PHP MySQL CRUD involves the connection of PHP with the MySQL database and performing Create (Insert), Read (Select), Update (Modify), and Delete Operation on the table. PHP and MySQL connectivity is a very important topic while learning PHP here step by step PHP and MySQL connectivity and creat update delete and read operations are discussed using … Read more