Tag Archives: Business – Oriented Solutions

PHP String Operator

String Operator When you start writing PHP code, you will realize the importance of string operators. PHP uses twokinds of string operators, concatenation (.) the dot sign and concatenating assignment (.=) the dot and equal to sign.The concatenation operator is used when you want to combine the left and right argument between which the operator is placed. The concatenating… Read More »

PHP Increment/decrement Operator

Incrementing and Decrementing Operators There are two types of incrementing and decrementing operators, post incrementing/decrementing operators and pre incrementing /decrementing operators. Post incrementing operators are placed after a variable name, and pre incrementing /decrementing operators are placed before the name. Operator Usage Output Post incrementing $a++; Returns the value of $a and then adds 1 to the value… Read More »

PHP Comparison Operator

Comparison Operators This operator is used to compare two given values. Name Symbol Usage Description Equal to == $a==$b The value of $a is equal to the value of $b. Not equal to != $a != $b The value of $a is not equal to the value of $b. Less than < $a <$b The value of… Read More »

PHP Assignment Operator

Assignment Operators Assignment operators are use to assign a specific value to variable. They are also use to change the existing value of a variable by adding or subtracting from the variable ‘s current value. A few examples are =, +=, -= and .=. In PHP you can use more than one assignment operator in a single… Read More »

PHP Arithmetic Operator

Arithmetic operators Arithmetic operators are used to perform elementary mathematical calculation and are used when value of variable declare in integer type. Name Example Output Addition $a+$b The sum of $a and $b Subtraction $a-$b The difference between $a and $b Multiplication $a*$b The product of $a and $b Division $a/$b The quotient of $a and $b Modules $a%$b The remainder… Read More »