Topics
Advanced Web Designing
Introduction to SEO (Search Engine Optimization)
Advanced Javascript
Emerging Technologies (IOT, Cloud Computing, AI,5G)
Server-side Scripting (PHP)
E-Commerce and E-Governance
- If statement in PHP
- If-else statement in PHP
- Loop Structure in PHP
- Use of foreach loop
PHP Arrays
If statement in PHP
If statement allows programmer to make decision, based on one or more conditions; and execute a piece of code conditionally.
If-else statement in PHP
If-else statement allows programmer to make decision based on either this or that condition.
Loop Structure in PHP
Loops are used to execute the same code block repeatedly till a certain condition is satisfied. The example of this is For Loop.
Use of foreach loop
This is a special type of loop which works only on arrays and is used to loop through each key/value pair in an array. All the other arrays have no such condition mentioned. Syntax: foreach($array as $value)
If you would like to contribute notes or other learning material, please submit them using the button below.