RE: [PHP] int to string
| From: | Chrome | Date: | Thu, 06 Apr 2006 00:16:18 +0000 |
| Subject: | RE: [PHP] int to string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233313@lists.php.net to get a copy of this message | ||
Please accept my apologies... I only scanned then reread and spotted the
obvious (deliberate) omissions
It is late here :)
Sorry
Dan
-------------------
http://chrome.me.uk
-----Original Message-----
From: Peter Hoskin [mailto:peterh@criten.org]
Sent: 06 April 2006 01:06
To: Chrome; php-general@lists.php.net
Subject: Re: [PHP] int to string
Chrome wrote:
> Won't work
>
> 20 would become 'two zero' not 'twenty' as the for loop identifies 1
> character at a time
>
> Don't have any suggestions... Just critisms :-D... hehe sorry
>
You don't say... it won't even convert 2 to 'two' so obviously this is
an EXAMPLE and not a COMPLETE SOLUTION.
Want a complete solution? $88 AUD/hr.
Want to criticize? look at the for loop, its infinite. $i isn't set, the
first call to it should actually be $i = 0
Regards,
Peter Hoskin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__________ NOD32 1.1474 (20060405) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com