PHP fwrite function why i cannot write "$" character in fwrite -
what problem in code? why cannot use "$" in fwrite function?
fwrite($dosya_index,"$al_".$bol_radiopart[1]." = $_post['".$bol_radiopart[1]."'];");
this because php variables interpolated in strings enclosed double quotes. means words starting $
sign in double quotes handled variables, , if such variable exists, value replaced within string. escape $ sign (\$
) or use single quotes interpolation not applied.
Comments
Post a Comment