I'm trying to write html code in a php echo statement but I keep failing.
echo "<option value='$_GET['b']'>$_GET['b']</option>";
error:
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in .../web_info.php on line 11
I mean when should I use " and when '? what are the rules?that's so confusing.