You are here: Re: Appending an integer to a string « PHP Programming Language « IT news, forums, messages
Re: Appending an integer to a string

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация