can you show how to convert a number into letter or a string in PHP?
thanks
Convert Or Change Numbers Into Letter ASCII In PHP
Convert Or Change Numbers Into Letter ASCII In PHP
Convert Or Change Numbers Into Letter ASCII In PHP
Post Description:
Post Tags: convert, or, change, numbers, into, letter, ascii, in, php
This Post Has Been Viewed 6093 Times Since Thu Aug 24, 2006 6:54 pm Posted By hostman with 6 replies
Post Description:
Post Tags: convert, or, change, numbers, into, letter, ascii, in, php
This Post Has Been Viewed 6093 Times Since Thu Aug 24, 2006 6:54 pm Posted By hostman with 6 replies
| Convert Or Change Numbers Into Letter ASCII In PHP |
Leave Your Comments [ dejar commentarios ]
Comments and replies About Convert Or Change Numbers Into Letter ASCII In PHP
:: 1 :: #96 - Reply By hostman On Thu Aug 24, 2006 6:56 pm
If you want to conver a number into letter or a string, then you've found the right article.
I wanted to do this for a project and it took me a while to find the answer. Hopefully you can benefit from this:
The only requirement for this to work on your web pages is that you have PHP in your hosting. IF you don't have php, you can signup with www.webune.com for a php plan. if you have php, continue on...
First, copy and past the following code to a text editor like notepad.exe
Code:
Save it and upload to your server, the call it with your browser.
Our friends at www.webune.com have provided us with PHP hosting to demostrate an example:
CLICK HERE TO SEE DEMO
I wanted to do this for a project and it took me a while to find the answer. Hopefully you can benefit from this:
The only requirement for this to work on your web pages is that you have PHP in your hosting. IF you don't have php, you can signup with www.webune.com for a php plan. if you have php, continue on...
First, copy and past the following code to a text editor like notepad.exe
Code:
<HTML>
<TITLE>Learn How to convert and change binary to hex in PHP Tutorial</TITLE>
<HEAD>
<style type="text/css">
<!--
.style2 {color: #0066FF}
-->
</style>
</HEAD>
<BODY>
<h1 align="center">Learn How to convert and change binary to hex in PHP Tutorial</h1>
<div align="center">Turotial by <a href="http://www.wallpaperama.com">Wallpaperama.com</a></div>
<hr size="2" noshade>
<?php
if($_POST['word']){ ?>
<h2 align="center">I changed <span class="style2"><?php echo $_POST['word']; ?></span> into <span class="style2"><?php echo bin2hex($_POST['word']) ?></span></h2><?php } ?>
<p><form name="form1" method="post" action="">
<strong>Enter a word you wish to convert into numbers</strong>:
<input name="word" type="text" value="wallpaperama">
<input type="submit" name="Submit" value="Submit">
</form>
</p>
<p>This Script was developed by <a href="http://www.wallpaperama.com">Wallpaperama.com</a> - Support us by telling your friends about wallpaperama and help contribut to the open source by adding your knowledge of PHP, Linux, Mysql and more to others, just like this script.</p>
<p>Thank You</p>
<p>Wallpaperama Team</p>
<p><a href="http://www.wallpaperama.com/forums/show-display-relative-root-path-php-function-absolute-path-linux-hosting-t378.html"><< Go Back</a> </p>
<p align="center">PHP Hosting by <a href="http://www.webune.com">Webune.com</a> </p>
<p>
</BODY>
</HTML>
<TITLE>Learn How to convert and change binary to hex in PHP Tutorial</TITLE>
<HEAD>
<style type="text/css">
<!--
.style2 {color: #0066FF}
-->
</style>
</HEAD>
<BODY>
<h1 align="center">Learn How to convert and change binary to hex in PHP Tutorial</h1>
<div align="center">Turotial by <a href="http://www.wallpaperama.com">Wallpaperama.com</a></div>
<hr size="2" noshade>
<?php
if($_POST['word']){ ?>
<h2 align="center">I changed <span class="style2"><?php echo $_POST['word']; ?></span> into <span class="style2"><?php echo bin2hex($_POST['word']) ?></span></h2><?php } ?>
<p><form name="form1" method="post" action="">
<strong>Enter a word you wish to convert into numbers</strong>:
<input name="word" type="text" value="wallpaperama">
<input type="submit" name="Submit" value="Submit">
</form>
</p>
<p>This Script was developed by <a href="http://www.wallpaperama.com">Wallpaperama.com</a> - Support us by telling your friends about wallpaperama and help contribut to the open source by adding your knowledge of PHP, Linux, Mysql and more to others, just like this script.</p>
<p>Thank You</p>
<p>Wallpaperama Team</p>
<p><a href="http://www.wallpaperama.com/forums/show-display-relative-root-path-php-function-absolute-path-linux-hosting-t378.html"><< Go Back</a> </p>
<p align="center">PHP Hosting by <a href="http://www.webune.com">Webune.com</a> </p>
<p>
</BODY>
</HTML>
Save it and upload to your server, the call it with your browser.
Our friends at www.webune.com have provided us with PHP hosting to demostrate an example:
CLICK HERE TO SEE DEMO
:: 2 :: #19633 - Reply By ombres On Mon Sep 10, 2007 11:59 am
dude you suuck..
:: 3 :: #47934 - Reply By test On Mon Mar 31, 2008 4:47 am
it says you show how to convert a number into a letter/string, yet when i look through your code it only shows how to convert a word into a number....wrong way round.
:: 4 :: #66167 - Reply By KUL BDR GHALLEY On Tue Aug 12, 2008 5:34 pm
change 0110 1101 and 0100 1101
:: 5 :: #68168 - Reply By Ramnath On Tue Aug 26, 2008 4:40 am
25 = twenty five
:: 6 :: #68169 - Reply By ramnath On Tue Aug 26, 2008 4:41 am
25=twenty five

