01-31-2009, 10:46 AM
|
#2 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
PHP Code:
<?php
$canned_response = 'Hi %s, welcome to TalkPHP! Hope you enjoy your stay. :-)';
$your_name = 'Justin'; $your_welcome = sprintf($canned_response, $your_name);
echo $your_welcome;
|
|
|
|