postfix and prefix increment operators also work on letter values : Arithmetic Operators « Operator « PHP
- PHP
- Operator
- Arithmetic Operators
postfix and prefix increment operators also work on letter values
<?php
$a = "G98";
print("\$a = \"" . ++$a . "\"<br />");
print("\$a = \"" . ++$a . "\"<br />");
print("\$a = \"" . ++$a . "\"<br />");
?>
Related examples in the same category