Jump to content

Value In = Value Out


Q695

Recommended Posts

  Quote
Increment/decrement Operators

 

++$a Pre-increment Increments $a by one, then returns $a.

$a++ Post-increment Returns $a, then increments $a by one.

--$a Pre-decrement Decrements $a by one, then returns $a.

$a-- Post-decrement Returns $a, then decrements $a by one.

Link to comment
https://forums.phpfreaks.com/topic/269472-value-in-value-out/#findComment-1385238
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.