You are here: Re: newbie alert: how to write this in a shorter way « PHP Language « IT news, forums, messages
Re: newbie alert: how to write this in a shorter way

Posted by -Lost on 12/21/06 17:49

"Els" <els.aNOSPAM@tiscali.nl> wrote in message
news:ydcvw9wiyfpf.12113dok9338b.dlg@40tude.net...
> -Lost wrote:
>
>> Exactly. You are missing a ) though.
>
> Yup - noted, thanks.
>
>>> PHP.net gave a caution about the range() function:
>>> "In PHP versions 4.1.0 through 4.3.2, range() sees numeric strings as
>>> strings and not integers. Instead, they will be used for character
>>> sequences. For example, "4242" is treated as "4"."
>>>
>>> Would that cause trouble if I'd have
>>> $array = range(31,47);
>>> ?
>>
>> That would cause problems only if you passed strings to range() instead of integers.
>
> As in range('31','47')?
> What defines a string - the quotes?

Yep.

-Lost

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация