Convert or Change Numbers into Letter ASCII in PHP

RegisterLogin
Convert or Change Numbers into Letter ASCII in PHP
Post Description: Convert or Change Numbers into Letter ASCII in PHP
Tags: Convert, or, Change, Numbers, into, Letter, ASCII, in, PHP
This Post Was Posted On Feb 29, 2008 By web hosting #1170
can you show how to convert a number into letter or a string in PHP?

thanks
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
ombres
#1579 1
dude you suuck..
Sep 10, 2007 Reply Report abuse
hostman
#1578 2
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:
<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">&lt;&lt; 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
Aug 24, 2006 Reply Report abuse
©2011 Webune Forums - Mon Dec 19, 2011 4:55 pm
Powered by: Webune Forums V3