Reply to Re: what does thsi line do

Your name:

Reply:


Posted by Oli Filth on 09/29/05 02:06

Evert said the following on 28/09/2005 23:14:
> chris wrote:
>
>> I was looking through some PHP code and saw the below line of code and
>> was wondering what it did -
>>
>> $w = ($tmp[0]>$maxw) ? $maxw : $tmp[0];
>>
>> can someone explain what it would do ??
>>
>>
>>
>
> if ($tmp[0]>$maxw) {
> $w = $maxw;
> } else {
> $w = $tmp[0];
> }
>
> RTFM?
>

Not easy to RTFM if you don't know what it's called...


--
Oli

[Back to original 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

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