Posted by Steve on 10/07/05 21:50
> I am having problems appending a number to the end of a string. I > $filename = 'test.file."; > $i = 0; > and I want to change $filename to become 'test.file.0'. $filename = "$filename$i"; or $filename .= "$i"; or $filename .= strval( $i ); or $filename = sprintf( "%s%d", $filename, $i ); or google some more... --- Steve
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming