Posted by Malcolm Dew-Jones on 10/07/05 22:30
Robizzle (Rob.Meyer1@gmail.com) wrote:
: I am having problems appending a number to the end of a string. I
: searched google and google forums and couldn't figure it out .... sorry
: i'm sure its simple.
: so I have:
: $filename = 'test.file.";
^
Mismatched quotes. It works for me when I use the correct quotes.
$ php
<?php
$filename = 'test.file.'; # note quote
$i=0;
$filename .= $i;
echo $filename;
?>
^D
test.file.0
--
This programmer available for rent.
[Back to original message]
|