You are here: Re: Function Evaluation inside a literal. « PHP Programming Language « IT news, forums, messages
Re: Function Evaluation inside a literal.

Posted by Janwillem Borleffs on 06/26/06 08:24

ImOk wrote:
> or do I have to create a variable first or concatenate the string.
>

Besides creating a variable first, you have the following options:

$dt = 'The order was sent ' . date('F j, Y') . '. Please make a note of
it';

$dt = sprintf('The order was sent %s. Please make a note of it', date('F j,
Y'));


JW

 

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

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