SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: %s -> whats it??
Threaded View
-
Oct 26, 2001, 07:45 #1
- Join Date
- Dec 2000
- Location
- Karachi, Pakistan
- Posts
- 913
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
%s -> whats it??
Hello,
I am learning PHP and mySQL from Wrox's PHP Programming. I am stuck on a code and can't understand what does it means. Its basically a function and what it does is formats the text inside the function. Here is the code:
PHP Code:function GenerateHTMLHeader($message)
{
printf("font size=+4 face=Arial color="red"><B>");
printf("%s</b></font><br>", $message);
}
it would display Omair Haroon in red color.
The only thing I can't understand is what does %s in the fourth line stands for.
Waiting for your help guys.
-Omair36Host.com - $36/year web hosting [affiliates earn 30%]
* Affordable Small Business Web Hosting since 2003! *
"500mb space, 10gb bandwith, 50 pop/ftp accounts, php,
mysql, pre-installed php scripts, 24/7 support & more...."
Bookmarks