You can write less code for same result and It is more understandable.
$var = $var + 1; // Add 1 to $var
$var ++; // Gives same result
Also work with this;
$var = $var - 1; // Sub 1 to $var
$var --; // Gives same result
$var = "It"
$var = $var + " can be..."; // Result : It can be...
$var .= " can be..."; // Result : It can be...
Shortcut for If Else;
if($var != "page"){
$out ++; // Add 1 to $out
}
if($var != "page") $out ++; // Gives same result (Add 1 to $out)
Much more is coming soon. (:
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2013
(219)
-
▼
July
(25)
- Form elements added by jquery not getting on the s...
- Sessions
- $_get() in php
- SQL: exists
- Php Error Control Operators
- Control structures in Php: return
- User logs out in php Penny Auction
- Security
- PHP File Uploading
- Assignment #7: User registration
- No title
- The History of PHP
- How to reset Mysql root pasword on Windows
- PHP foreach statement
- Php Tips
- Cake php Data validation
- How to use XMLHttpRequest
- While Loop in Php
- Reasons to Love PHP and MySQL
- The do while Statement
- Get result from database using a function SafDBFunc
- Javascript for checking Caps Lock is ON or OFF
- concatenation in php
- Php Comparison Operators
- PHP coding tips to write less code (If then else a...
-
▼
July
(25)