It doesn't cause errors? Normally I use an apostrophe in PHP and quotation marks in HTML; they're pretty much the same, although you could argue that an apostrophe is faster as PHP doesn't check the contents for variables (thereby speeding up the process, although by an unnoticeable amount; and you're making your code messier than necessary).
PHP Code:$phrase = 'cool';
$string = 'Bob\'s '.$phrase;
PHP Code:$phrase = "cool";
$string = "Bob's $phrase";






Reply With Quote

