php: problems with embedded apex in a string ?

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-04-29T12:47:23Z Indexed on 2010/04/29 13:17 UTC
Read the original article Hit count: 262

Filed under:
|
|

how can I write more embedded " and ' in php ? For example, I dunno how to write this html complete element with all apex:

As you can see, I use '' for the php string. Then inside, I use "", but then I need another level of apix and I dunno how to write that one in my php document. (php thinks that the string is complete in the middle because it sees another ' before the end.

$output .= '<img style="outline:none;" src="sites/default/unselect.png" alt="Unselect All" onclick='$(this).siblings('.form-item').each(function(index){ $('input:checkbox', this).attr('checked', ''); });'/>';

how can I solve this ?

thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about string