Re: Re: php4 vs. php5

From: Date: Fri, 03 Feb 2006 00:52:29 +0000
Subject: Re: Re: php4 vs. php5
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-229784@lists.php.net to get a copy of this message
I need to add two numbers together, unfortunately one of them is a string that starts with a character. I'd like to convert a string such as 'x5' to the number 5. Don't care about it's final type as that isn't the hard part. :) I can't find a function to do this. I looked in the math class and in the string class and there doesn't seem to be something to help. I, of course, could write something to handle it but I would prefer to use something built in. Any help would be appreciated. Thanks, Keith

« previous php.general (#229784) next »