Sorry if there is a question that's very similar to this or if there is answer somewhere else but I have a question that's been on my mind lately.
Most people that are versed in programming languages and strings would know that you can escape quotations with a slash (\")
Ex: echo "<input name=\"submit\" type=\"submit\" id=\"brandid\" value=\"submit\" />
";
But what I usually do is use ' inside of " instead of slashes. So the code above would look something like this:
echo "<input name='submit' type='submit' id='brandid' value='submit' />
";
Could someone explain the differences between the two and the advantages or disadvantages between the two? Sorry if I didn't use the correct terminology or am missing something.
Thanks for any help in advance.