PHP 8.5.0 Alpha 1 available for testing

Voting

: min(six, seven)?
(Example: nine)

The Note You're Voting On

unicod3 at hotmail dot com
10 years ago
a function to get column index by letter

function getColumnNumber($char){
$alphabet = range('a','z');
$alphabet2 = range('a','z');
$newAlphabet = $alphabet;
foreach($alphabet as $k => $r)
{
foreach($alphabet2 as $row){
$newAlphabet[] = $r.$row;
}
}
$key = array_search($char, $newAlphabet);
return ($key !== false) ? $key : null;
}

<< Back to user notes page

To Top