You are here: Re: better programming « PHP Programming Language « IT news, forums, messages
Re: better programming

Posted by Rik on 01/05/07 02:09

Peter Fox wrote:
> For example :
> $address = "57 High St., Huddersfield"; // could be define()
> print("You can visit us at $address Monday to Friday 9 - 5");
>
>
> And if you're ever thinking of internationalisation ...

Good point:

$format['visitus'] = array(
'en' => 'You can visit us at %s Monday to Friday 9 - 5',
'nl' => 'U kunt ons van maandag tot vrijdag tussen 9 - 5 op %s
bezoeken.');

$lang = 'en'; //or somthing else

printf($format['visitus'][$lang],$adress);

Makes it a lot simpler to change languages then the other option.
--
Rik Wasmus

 

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

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