Re: converting numeric to a string

From: Date: Tue, 07 Aug 2001 16:33:53 +0000
Subject: Re: converting numeric to a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61657@lists.php.net to get a copy of this message
Don wrote: > Hi, > > I'm looking at the 'String' section of the online documentation. I > cannot find a function that converts a numeric to a string, e.g., 1 > --> "1". > > Am I blind or does this not exist? With loose typing, this is not really necessary. If I'm wrong here, you might use settype() or do a type cast: $str = (string)$int; regards Wagner -- Madness takes its toll. Please have exact change.

« previous php.general (#61657) next »