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

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -