Variable Names

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Monotoko
Forum Commoner
Posts: 64
Joined: Fri Oct 26, 2007 4:24 pm

Variable Names

Post by Monotoko »

Hiya again ^.^

Was hoping someone could help me as i am stumped

Code: Select all

$pubsterupdatevar = "<?php\n";
$pubsterupdatevar.= "$pubversion = 'PubsterMax v3.07';\n";
$pubsterupdatevar.= "?>";
I want it to then save that file, the only problem is, it doesnt save the varname, because it is empty, i dont want it to save the variable, i want it to litterally save "$pubversion"

was wondering if anyone could help me?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Variable Names

Post by Christopher »

Code: Select all

$pubsterupdatevar = "<?php\n";
$pubsterupdatevar.= "\$pubversion = 'PubsterMax v3.07';\n";
$pubsterupdatevar.= "?>";
(#10850)
Post Reply