This is probably a lame question - so thanks in advance.
I need to know if its possible to write a variable name to a file (not the variable result). So for example I want to have the file end up with the line...
<? $type = 1; ?>
If i try...
$afp = fopen("$aqnum.php", "w");
fwrite($afp, "<? $type = $atype; ?>");
I get
<? = 1; ?> (where $atype has a result of 1).
how can I get $type to print as "$type" the string?