test2 - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of test2.php
- <?php
- /*
- This is our digit for tranformation
- */
- $inputDigit = 19;
- //$numbers = Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27);
- $alpha = range('A', 'Z');
- if ($inputDigit < 28) {
- $inputDigit = ($inputDigit % 36) - 1;
- } else {
- $inputDigit = (($inputDigit / 36 ) - 1;
- }
- echo $inputDigit.'<br/>';
- echo ($alpha[$inputDigit]);