Re: convert int to string

From: Date: Wed, 30 Oct 2002 22:29:29 +0000
Subject: Re: convert int to string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122141@lists.php.net to get a copy of this message
I would approach this by first going here: http://www.php.net/manual/ And go to the section on types: http://www.php.net/manual/en/language.types.php In there is a section for type juggling: http://www.php.net/manual/en/language.types.type-juggling.php From these places you'll see various options, such as: $int = (string) $int; settype($int, 'string'); On a related note, all variables passed through HTTP are strings. See also is_numeric(). Regards, Philip On Wed, 30 Oct 2002, Jef wrote: > How can I convert an integer variable to a string variable? I have checked > PHP's website and I must not be looking for the right function. Any help > please. > > > > > Jef > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#122141) next »