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# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -