Why isn't my variable expanded in this string?

Posted by Steven on Stack Overflow See other posts from Stack Overflow or by Steven
Published on 2010-04-09T16:55:35Z Indexed on 2010/04/09 17:03 UTC
Read the original article Hit count: 192

Filed under:
$q = $_GET['q'];

// Load and parse the XML document 

$rss =  simplexml_load_file('http://search.twitter.com/search.atom?lang=en&q=$q&rpp=100&page=1');

This returns results containing "$q" instead of results containing the value of $q. Why won't it work?

© Stack Overflow or respective owner

Related posts about php