Zend - The PHP Company




Text

Add Code


List all 256 Character Function  

Type: code fragment
Added by: madlogic
Entered: 30/11/2002
Last modified: 02/11/2001
Rating: - (fewer than 3 votes)
Views: 5057
This will return all the 256 characters with its valid char('value'); ...


<?
#
# Type: Function
# Author: MadLogic
# Email: MadLogic@Paradise.net.nz
# Usage: 
#   _listChrs();
#

function _listChrs(){ 
  for (
$i 0$i 256; ++$i) { 
    static 
$genTmp
    
$genTmp++; 
    print 
"chr($genTmp) will output '".(chr($genTmp))."'<br>n";
  } 

_listChrs();
?>


Usage Example


See the example


Rate This Script





Search



This Category All Categories