Monthly Archive: November 2014

Nov 23

PHP Operator Type

What is Operator Ans.:  Operator used for perform operation on variable and value. Type of Operator Arithmetic operators Comparision Operators Logical (or Relational ) Operators Assignment Operators Conditional (or Ternary) Operators There are following Operator (suppos that A hold 15 and B hold 30) Arithmetic operators +   Add two Operand            A+B=45 –   Subtract second …

Continue reading »

Nov 22

php magic constant

__LINE__              : Current line number of file. echo “This is line number ” . __LINE__ . “.\n”; __FILE__                  : The Full path and Filename of the file. If used inside an include the name of include file return. echo “This file …

Continue reading »