Ascii Value

From: Date: Tue, 18 Jun 2002 18:57:04 +0000
Subject: Ascii Value
Groups: php.general 
Request: Send a blank email to php-general+get-102755@lists.php.net to get a copy of this message
Hey *, In C I can cast a char 'j' to an int and get it's ascii value. Is there a funciton in PHP to do this with a string containing a single char (i.e. "j")? I could write a big switch for all the chars of the alphabet, however I was hoping for a better approach? Jim Drabb -- ------------------------------------------------------------- Never ask a geek why, just nod your head and slowly back away ------------------------------------------------------------- James Drabb JR Programmer Analyst Darden Restaurants Business Systems JDrabb@Darden.com JDrabb@cfl.rr.com

« previous php.general (#102755) next »