Re: [PHP] converting numeric to a string

2001-08-07 Thread Alexander Wagner

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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] converting numeric to a string

2001-08-07 Thread rm

check out settype() however read the doc on types you
may not need settype at all

rm


--- Don [EMAIL PROTECTED] 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?
 
 Thanks,
 Don
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] converting numeric to a string

2001-08-07 Thread Kees Hoekzema

hey,

this function does not exists.
An interger can be treated as string without any problems,
see also:
http://www.php.net/manual/en/language.types.string.php#language.types.string
.conversion


Kees

 -Original Message-
 From: Don [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 07, 2001 6:35 PM
 To: php list
 Subject: [PHP] converting numeric to a string


 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?

 Thanks,
 Don


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] converting numeric to a string

2001-08-07 Thread Philip Olson

Have a look here :

  http://php.net/manual/en/language.types.type-juggling.php

  http://php.net/manual/en/function.settype.php

regards,
philip


On Tue, 7 Aug 2001, 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?
 
 Thanks,
 Don
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]