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…
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…
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…
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…
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….
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…
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…
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…
php string operators
PHP String Operators PHP has main two string operators ( . ) concatenation and ( .= ) concatenation assignment. concatenation ( . ) string operator…
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…
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…
php logical operators
PHP Logical operators Logical operators are used when we have conditional statement such as if statement. PHP logical operators && and || …