You are here: Re: sql string + variable « All PHP « IT news, forums, messages
Re: sql string + variable

Posted by dimo414 on 01/22/07 21:12

Also, try using sprintf() - http://us3.php.net/sprintf

If you don't know about formatted strings, it's a way to make a static
string, and put variables inside it, for instance:
sprintf("I have %d eggs in my %d baskets", $eggs, $basket); returns 'I
have 30 eggs in my 3 baskets'.

At first, it seems convoluted and extra work, but once you get used to
them, formatted strings are a /very/ powerful tool.

 

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

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