相关疑难解决方法(0)

如何在PHP中将数字转换为字母?

这个函数numtoalpha如何打印出大于9的字母等价物?结果,如下所示:A为10,B为11,等等....

PHP.net甚至没有这个功能,或者我没有找到正确的位置,但我确信它说的功能.

<?php
$number = $_REQUEST["number"];
/*Create a condition that is true here to get us started*/
if ($number <=9)
{
echo $number;
}
elseif ($number >9 && $number <=35) 
{
echo $number;
function numtoalpha($number)
{
echo $number;
}
echo"<br/>Print all the numbers from 10 to 35, with alphabetic equivalents:A for10,etc";
?>
Run Code Online (Sandbox Code Playgroud)

php

1
推荐指数
2
解决办法
1万
查看次数

标签 统计

php ×1