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]
|