str 2 int

From: Date: Thu, 17 Aug 2000 18:32:02 +0000
Subject: str 2 int
Groups: php.general 
Request: Send a blank email to php-general+get-12316@lists.php.net to get a copy of this message
can somebody tell me how to convert a string like "0123" to a number, 123? i need to access an array as follows: $a = array("yxsc","asdasd",...); $bla = "2937123721973912732189973"; print $a[substr($bla,$x,$y)]; thx! -- Sent through GMX FreeMail - http://www.gmx.net

« previous php.general (#12316) next »