Re: Newbie question: convert string to int

From: Date: Mon, 17 Jan 2005 07:47:49 +0000
Subject: Re: Newbie question: convert string to int
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-25350@lists.php.net to get a copy of this message
If you are holding a string with a valid number in it e.g. "5.7" then the conversion is done automatically. See the manual section Language Reference / Types / Strings / String conversion to numbers. If you are holding a string with the number in words e.g. "Five" then you'll need to write your own function for that. graeme Louis Young wrote:
Hi there What's the function to convert a string to an int. Cheers Louis
-- Experience is a good teacher, but she sends in terrific bills. Minna Antrim

« previous php.windows (#25350) next »