PDA

View Full Version : SQL embedded in HTML



bradle01
11-08-2003, 11:12 AM
Hi

I have worked out how to return the ascii value of a character, but I can't work out how to return the character of an ascii.

Help please

dealercrm
11-08-2003, 03:10 PM
IN PHP:

Return a specific character (PHP 3, PHP 4 )
string chr ( int ascii )

Returns a one-character string containing the character specified by ascii.


<?php
$str .= chr(27); /* add an escape character at the end of $str */

/* Often this is more useful */

$str = sprintf("The string ends in escape: %c", 27);
?>