You are here: Re: conditional statements and loops « PHP Programming Language « IT news, forums, messages
Re: conditional statements and loops

Posted by Ewoud Dronkert on 10/19/05 23:45

Sergej Andrejev wrote:
> conditional statements (if..else and switch) and loops (while and for).
> Can you give me an advise on some geeky use of those statements to stir
> up some enthusiasm in students.

if: echo 'first' or 'last' part of the week depending on day of the week
for: construct an html table of $x columns and $y rows, echo to page
while: break up a sentence in words, store in array
switch: echo sentence in colour specified by first word

--
E. Dronkert

 

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

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