I just read it again, And I think I may know:
If you want to put quotes into a string, do this...
$string = "Hello I'm Matthew"; // Single quotes ok, because they are within double quotes.
$string = "Hello, I'm \"Matthew\""; // Double quotes need to have a \\ before them in strings with double quotes.
$string = 'Hello, I\\\'m Matthew'; // Single quotes need to be backslashed because they are within single quotes.
$string = 'Hello I\\\'m "Matthew"'; // Double quotes ok, beacuse they are within single quotes.
Does this help?
I just noticed that VB Strips slashes ( like the stripslashes given below ) when they are behind certain chars. Some of single quotes should have backslashes behind them.