Best Tutorials website


Pre/Post Increment, Decrement

Pre/Post Increment, Decrement

$index++; // Post-increment, Give the value of index, then increments index by one
++$index; // Pre-increment, increments index by one, then returns the valueof index
$index–; // Post-decrement, Give the value of index, then decreases index by one
–$index; // Pre-drecrement, decreased increments index by one, then returns the value of index




Views: 585 | Rating star | by Jason




View this tutorial
Broken link Report broken link?