Could save yourself the hassle of al the escaping by using 2 different quite types. Also it might be more informative to include the value of $op in the message.