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

c++ - rosrun via ssh doesnt start a node properly -

android - questions about switching from C2DM to GCM -

How to resolve Delphi error: Incompatible types: 'PWideChar' and 'Pointer' -