Posts tagged Magic Tricks
The Ternary Operator – Working same as If-Else
We know, in programming there are three operators named Unary Operator , Binary Operator and Ternary Operator. Operator’s name itself says that if it is a Unary Operator(e.g. Increment – Decrement operators) than it will take only one operand, If it is Binary operator(e.g. Relational operators) than it will take two operands and if it is Ternary operator than it will take three operands.
Speed up Performance of Loop with Large Arrays
As we know, FOR loop is same for all programming language, it does not matter , in which language you are working. This is about how to decrease load time. I have shown an example of PHP language. Generallly we are using the FOR loop as below which count a $large_array every time the FOR loop execute.


I am
Recent Comments