Category: PHP Tutorials

Learn PHP for website development.

php do-while loop

PHP do-while loop  PHP do-while loop always execute block of code at least once, then check condition and repeat the loop as long as the…

Continue Reading php do-while loop

php while loop

PHP while loop PHP while loop used to execute same block of code again and again while a condition is true. while loop syntax <?php…

Continue Reading php while loop

php for loop

PHP for loop PHP loop used to execute same block of code again and again specified number of time. for loop – In for loop…

Continue Reading php for loop

php loop types

PHP loop PHP loop used to execute same block of code again and again specified number of time. Loops execute block of code while the…

Continue Reading php loop types

php switch statements

PHP switch statement The switch statement is used when we have multiple condition but only one condition true and only that code will be executed….

Continue Reading php switch statements

php if elseif else statement

if-elseif-else statement – this statement is used when we want to execute a code if one of multiple condition is true. if-elseif-else statement syntax: <?php…

Continue Reading php if elseif else statement

php if-else statement

PHP if Conditional Statement Conditional statement in php used to take decision on based the conditions is true or false. Simple if statement Simple if…

Continue Reading php if-else statement

php conditional statements

PHP Conditional Statements Conditional statement in php used to take decision on based the conditions is true or false. There are basic four conditional statements…

Continue Reading php conditional statements

php string operators

PHP String Operators PHP has main two string operators ( . ) concatenation and ( .= ) concatenation assignment. concatenation ( . ) string operator…

Continue Reading php string operators

php comparison operators

PHP Comparison Operators PHP comparison operators are used compare one variable value with another. Values may be string or number. The PHP basic comparison operators…

Continue Reading php comparison operators

php assignment operators

PHP Assignment Operators The PHP assignment operators are used with numeric values to assign value to a variable. The main assignment operator is “=”, means…

Continue Reading php assignment operators

php logical operators

PHP Logical operators Logical operators are used when we have conditional statement such as if statement. PHP logical operators &&      and ||  …

Continue Reading php logical operators