I am trying to assign the following to a PHP variable:
[<a href='"'javascript:pop_booking_item_add({ID})'"'>Add New Item</a>]
I have tried this:
$add_button = "[<a href='"'javascript:pop_booking_item_add({ID})'"'>Add New Item</a>]";
But I am getting the error message:
Error: syntax error, unexpected ''javascript:pop_booking_item_a' (T_CONSTANT_ENCAPSED_STRING)
I think I need to escape the quotes but I'm not sure how to?