PHP 8.4.24 Released!

Voting

: two plus five?
(Example: nine)

The Note You're Voting On

matthiaz
14 years ago
Looping through letters is possible. I'm amazed at how few people know that.

for($col = 'R'; $col != 'AD'; $col++) {
    echo $col.' ';
}

returns: R S T U V W X Y Z AA AB AC

Take note that you can't use $col < 'AD'. It only works with !=
Very convenient when working with excel columns.

<< Back to user notes page

To Top