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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -