Our Blog

Arithmetic Operators in PHP
Arithmetic Operators in PHP

Topic-16 Arithmetic Operators in PHP DOC,PDF Arithmetic Operators : Arithmetic Operators are used to perform arithmetic operations on numerical values such as addition, subtraction, etc. Operators: +        –>       Addition –           –>       Subtraction /         –>       Division *      …

Comparison Operators in PHP
Comparison Operators in PHP

Title – 15 Comparison Operators in PHP DOC,PDF *Comparison Operators: -These Operators are basically used to compare two values. -These operators are used to compare numbers and strings. Operators ==                   –>        Equals to !=                   –>        Not…

Assignment Operators in PHP
Assignment Operators in PHP

Topic – 14 Assignment Operators in PHP DOC,PDF   *Assignment Operators : *Assignment operators are used to assign values to the variables. *Assignment Operators : =, +=, -=, *=, /=, .= ‘=’ operator is used to directly assign the values to the variables. *Apart from ‘=’ operator all other assignment operators are assigned to the variable after the calculation. Program:…

Control Statements in PHP
Control Statements in PHP

Topic – 13 Control Statements in PHP DOC,PDF *If-else statement: -If-else statement is a control statement. -It is used for the conditional statements. -If we have only two conditions it is better to use if-else statement. *Syntax of  if-else statement: If(condition){ //Statements } else{ //Statements } *If the condition in the if statement is true then if block is going…

Concatenation in Php
Concatenation in Php

Topic – 12 Concatenation in PHP DOC,PDF *Concatenation: *How to concatenate variables or strings in php ? -In any programming language we append the results to the strings or variables. Similarly we can do the concatenation in php. -In php we can concatenate the results, variables or strings in output using echo. Program1: <?php $day = ‘Monday’; $date = 07;…

Variables in Php
Variables in Php

Topic-11 Variables in Php DOC,PDF *Variables: *In other programming languages like c, c++, Java, etc., we have to declare the variables with data types such as integer, string, float, etc. *But in PHP we don’t need to declare the data types. *Variables in PHP are started with $ sign and followed by the variable name. -A variable name must start…

Comments in Php
Comments in Php

Topic – 10 Comments in Php DOC,PDF *Comments: *Comments in any programming language are used to understand the code by the developer or by others who see the code. *The comments are not executed, but can be read. *Types of Comments: 1.Single line comments. 2.Multi line comments. *            Single line comments are used to comment…

Embedding php in html:
Embedding php in html:

Topic – 9 Embedding php in html: DOC,PDF Embedding php in html: Sometimes we have to change the information as it changes. So we need dynamic pages to change the information dynamically. For this it is just not enough to use php only. But to get information updated,we can use php with html forms. Php can be embedded in html…

Using Html in Php
Using Html in Php

Topic – 8 Using Html in Php DOC,PDF *Output Html using echo: *We can implement the Html Forms in php. *Html code is implemented in php either by embedding the html code inside the php tags or outside php tags. *The following program illustrates the implementation of html code in php, Program 1: <input type=”text” name=”name” value=”alex”/><br /> <?php echo…

PHP Print
PHP Print

Topic – 7 PHP Print   DOC,PDF Print : Print is similar to echo. It also displays the output on the browser as echo do. Syntax: print ‘<Output Text>’; or print “<Output Text>”; or print (); Print can also be used as a function . Program 1: <?php $var1=10; $var2=20; print ‘Hello World<br>’; Print “Hello Again<br>”; print ($var1+$var2); ?> Output:…