| Author |
help--could someone tell me wat this means %s here
|
|
| Sunusi Ringim 2005-10-25, 9:56 pm |
| hi
am a newbie pls cld sme1 explain to me wat %s means in this line
printf("ID: %s Name: %s", $row["id"], $row["name"]);
cheers
| |
| ZeldorBlat 2005-10-26, 3:58 am |
| the %s tls printf() 2 format the valu as a string. the first 1 will b
replaced wit $row["id"] and the second 1 will b replaced wit
$row["name"]. Read this 4 different 4mats u can use:
<http://www.php.net/sprintf>
| |
| Hilarion 2005-10-26, 6:57 pm |
| > the %s tls printf() 2 format the valu as a string. the first 1 will b
> replaced wit $row["id"] and the second 1 will b replaced wit
> $row["name"]. Read this 4 different 4mats u can use:
>
> <http://www.php.net/sprintf>
Please use English. Probable translation is:
The %s tells printf() to format the value as a string. The first one will be
replaced with $row["id"] and the second one will be replaced with
$row["name"]. Read this for different formats you can use:
<http://www.php.net/sprintf>
Hilarion
| |
| Obvious 2005-10-26, 6:57 pm |
| On 25 Oct 2005 19:56:50 -0700, ZeldorBlat wrote:
> the %s tls printf() 2 format the valu as a string. the first 1 will b
> replaced wit $row["id"] and the second 1 will b replaced wit
> $row["name"]. Read this 4 different 4mats u can use:
>
> <http://www.php.net/sprintf>
Are you paying by the character, or are you replying by mobile phone, if
neither try to use full words in your reply, and please quote what you are
replying to.
| |
| ZeldorBlat 2005-10-27, 6:58 pm |
| >Are you paying by the character, or are you replying by mobile phone, if
>neither try to use full words in your reply, and please quote what you are
>replying to.
For those of you that missed it, I was trying to respond in a language
that the OP would understand.
| |
| Obvious 2005-10-27, 6:58 pm |
| On 27 Oct 2005 10:46:59 -0700, ZeldorBlat wrote:
>
> For those of you that missed it, I was trying to respond in a language
> that the OP would understand.
Is there a language that simple! :-)
| |
| MikesBrain 2005-10-28, 7:57 am |
| On Thu, 27 Oct 2005 20:21:32 GMT, Obvious <Obvious@godhelpme.com> wrote:
>On 27 Oct 2005 10:46:59 -0700, ZeldorBlat wrote:
>
>
>Is there a language that simple! :-)
No, but there are people who are...
|
|
|
|