Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-08-2003, 12:12 PM
WebProWorld New Member
 

Join Date: Jul 2003
Location: United Kingdom
Posts: 22
bradle01 RepRank 0
Default SQL embedded in HTML

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
__________________
Barry Wood
Group MD The Bradley Wood Group of Companies
www.thesatellitecouk.com
Reply With Quote
  #2 (permalink)  
Old 11-08-2003, 04:10 PM
dealercrm's Avatar
WebProWorld Member
 

Join Date: Nov 2003
Location: St Augustine, FL
Posts: 55
dealercrm RepRank 0
Default chr in php

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);
?>
__________________
- - - - - - - - - - - - - - - - - - - - -
Block spam instantly with a FREE account at SafeAddress.com

Automotive web site design
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0