RE: [PHP] Comining variables into a single string
| From: | Luboslav Gabal ml. | Date: | Sun, 16 Sep 2001 19:45:44 +0000 |
| Subject: | RE: [PHP] Comining variables into a single string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67520@lists.php.net to get a copy of this message | ||
> Greetings to All:
>
> I'm inexperienced, although enthusiastic about using PHP. I want to write
> data more effectively to a file.
>
> This doesn't work: fputs($frank, "Testing " $whatever " more testing
> \n\n\n");
> Right now, all I know is using three separate fputs statements. I'd like
to
> use just one.
fputs($frank, "Testing ".$whatever." more testing\n\n\n");
see http://www.php.net/manual/en/language.operators.string.php
Luboslav Gabal