PHP for Loop Loops are used to execute a part of code multiple times. Loop is also called iterative statements. PHP supports 4 type of loops such are “for loop”, “while loop”, “do-while loop”,& “foreach loop”. for Loops are used to execute a part of code multiple times. In for Loop initialization, condition and increment/decrement […]
PHP For Loop Statement with Break, Continue Syntax Example Code
May 27th, 2019
Nilesh Chaurasia
PHP for Loop Loops are used to execute a part of code multiple times. Loop is also called iterative statements. PHP supports 4 type of loops such are “for loop”, “while loop”, “do-while loop”,& “foreach loop”. for Loops are used to execute a part of code multiple times. In for Loop initialization, condition and increment/decrement […]
PHP Switch Case Conditional Statement Syntax and Code Example
May 25th, 2019
Nilesh Chaurasia
PHP Switch Case Statement PHP Switch Case is also a conditional statement. You also say that it is the alternative solution and easy syntax of multiple if statement. It is used for multiple test condition. Switch Case Syntax Example 1 – Switch Case Statement Example In the above code, we describe how you can use […]
PHP if else Conditional Statement Syntax and Shorthand Code Example
May 25th, 2019
Nilesh Chaurasia
PHP Conditional Statements PHP Conditional Statements are used to perform selected statements based on a certain condition. For example, suppose you want to execute some part of code when the variable $x value is 10. if statement – to execute some part of code when only one condition is true. if…else statement – to execute […]
PHP String functions for Length, Compare, Replace, Find, Uppercase, Lowercase, Search, Reverse
May 24th, 2019
Nilesh Chaurasia
PHP String Functions PHP String Functions are to manipulate the string. String Length, String Comparison, String Compare, String Replace, String Find, String Uppercase, String Lowercase, String Search are some string functions in PHP. PHP String Length String Length Function or strlen()is used to get the length of a string. Example 1 – PHP String Length […]
PHP Operator with Example Code for Arithmetic, Comparison, Assignment, Increment, Decrement And Logical l and Conditional
May 22nd, 2019
Nilesh Chaurasia
PHP Operators To perform the operations like- Arithmetic Operators Comparison Operators Assignment Operators Increment/Decrement Operators Logical Operators on the variables PHP Operators are used. PHP Arithmetic Operators To perform the arithmetic operations like addition, subtraction, divide, multiplication etc “Arithmetic Operators” are used. Operators Symbol Syntax Description Addition + $x + $y To calculate the sum […]
PHP Constant and Its Example Code Syntax
May 22nd, 2019
Nilesh Chaurasia
PHP Constant PHP Constant is also similar to the PHP VAriables but the value of Constant cannot be changed or Constant has a fixed value. If you want to create a constant then you have to use the “define()” function. Example 1 – Constant Syntax In the above examples, we have shown how you can […]
PHP Variables Data Type with Example of Int, Float, String and Boolean
May 20th, 2019
Nilesh Chaurasia
PHP Variable Data Types PHP Variables data type is used to define which type of variable you stored in your variables. PHP Supports 8 different data types of variables. Followings are the different types of PHP Variable Type. String Integer Float/Double Boolean Array Object NULL Resource PHP String Variable Type String is a set of […]
PHP Variables Define or Declaration with HTML Syntax
May 20th, 2019
Nilesh Chaurasia
PHP Variables Variable is used to store a piece of information or data to use this information or data throughout the PHP page. In PHP variable name starts with $ symbol. Example 1 – Variables use and code with echo In the above examples, we declare two variables($x, $y) and also print these variables. Fig.1 […]
CSS Media Query For Print Screen All with Breakpoints Example
May 17th, 2019
Nilesh Chaurasia
CSS Media Query Media Query is used to changing the CSS Properties Values according to the width of the screen. CSS Properties like font-size, color, width and other. Example 1 – CSS Media Query Example for responsive design In the above examples, we have a two column design. Both column show as inline when the […]
CSS Attribute Selector Syntax Code Examples and Applications
May 11th, 2019
Nilesh Chaurasia
CSS Attribute Selector Through the CSS Attribute Selector, you can select an HTML Element based on the presence of a particular attribute in a tag. If you want to change the design specification of all HTML elements which has a target attribute. Example 1 – Attribute Selector with a element having target defined In the […]

