How to store $ in a PHP variable?

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-03-25T06:45:10Z Indexed on 2010/03/25 6:53 UTC
Read the original article Hit count: 318

Filed under:

I want to store a $ character in a PHP variable.

$var = "pas$wd";

I get the following error

Notice: Undefined variable: wd in C:\xxxxx  on line x

Help.

© Stack Overflow or respective owner

Related posts about php