PDA

View Full Version : My first PHP Tips


bazet
19-12-2000, 07:52 PM
Hello, I'm new here but I've been programming in PHP for 2 months.I just stop by this forum after searching for " Sheila On 7 " and the result give me kafegaul.com. Pretty neat you guys have your own PHP forum.

Just wanna share 1 tips.

1. use %s,It might be save your time a lot


example :

<?
$fontface="arial";
$fontsize="2";
$fontcolor="#ffffff";
$msg="hello world";

printf('<font face="%s" size="%s" color="%s">%s</font>',$fontface,$fontsize,$fontcolor,$msg);

?>

Cherios!

http://www.sembang.com/s19.php

bejita
21-12-2000, 01:27 PM
put your tip on zend.com :)