¡@

Home 

php Programming Glossary: num2

convert Arabic/Persian numbers to English numbers

http://stackoverflow.com/questions/11766726/convert-arabic-persian-numbers-to-english-numbers

Û· 7 Û¸ 8 Û¹ 9 numbers over the unicode num0 #1776 num1 #1777 num2 #1778 num3 #1779 num4 #1780 num5 #1781 num6 #1782 num7 #1783.. function Convertnumber2english srting num0 0 num1 1 num2 2 num3 3 num4 4 num5 5 num6 6 num7 7 num8 8 num9 9 stringtemp.. stringtemp. num1 elseif substr srting sub 1 Û² stringtemp. num2 elseif substr srting sub 1 Û³ stringtemp. num3 elseif substr..

Algorithm to get the excel-like column name of a number

http://stackoverflow.com/questions/3302857/algorithm-to-get-the-excel-like-column-name-of-a-number

fine. But I'm going to add this nice short one function num2alpha n for r n 0 n intval n 26 1 r chr n 26 0x41 . r return.. getNameFromNumber num numeric num 26 letter chr 65 numeric num2 intval num 26 if num2 0 return getNameFromNumber num2 1 . letter.. numeric num 26 letter chr 65 numeric num2 intval num 26 if num2 0 return getNameFromNumber num2 1 . letter else return letter..