Character Problem

From: Date: Wed, 25 Feb 2004 10:00:06 +0000
Subject: Character Problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-22962@lists.php.net to get a copy of this message
Hi,everyone! When I want to create a character dictionary,I meet a problem. The problem is that how to put the characters (256 ASCII,including nonprintable) in an array in one loop. I can do like this: <?php Dictionary[] = "\x00"; Dictionary[] = "\x01"; ...... Dictionary[] = "\xFF"; ?> But when I want to do by using loop,it doesn't work. <?php for ( $i = 0; $i <=255; $i++ ) Dictionary[] = "\x$i"; // it doesn't work!!! ?> Is there anyone who has any idea or hint to solve this problem? Thank you so much in advance. Meteorlet meteorlet@sjtu.edu.cn 2004/2/25

« previous php.windows (#22962) next »