Monthly archives: January, 2017

Operators In PHP

What is Operator? Simple answer can be given using expression 4 + 5 is equal to 9. Here 4 and 5 are called operands and + is called operator. PHP language supports following type of operators. Arithmetic Operators Comparison Operators Logical (or Relational) Operators Assignment Operators Conditional (or ternary) Operators Lets have a look on …

PHP Variables and Constants

Variables are used for storing values that can change over the course of a script, whereas the constants are used for storing fixed values that doesn’t change. The main way to store information in the middle of a PHP program is by using a variable. Here are the most important things to know about variables …

JSON encode and decode on PHP

JSON makes dealing with data in your app exceptionally easy and manageable. The best part about JSON is you can look at it and understand it. It’s not like the confusing spaghetti DOM that you get with XML, it’s a lean minimal representation of your data. If you’re dealing with chunks of data in your …