Difference between ' and " in tcpdf or php -


i m little bit confuse in ' , ". im trying create pdf.

code

txt='<input type="checkbox" name="product[]" value="product fault/failure"'.if(in_array("product fault/failure",$myarray)) { .' checked="checked" '.} .'>product fault/failure' 

when executing this,getting syntax error.i dnt know why write in "" or '' quote , why cant write <?php ?>

'.....'.if(in_array("product fault/failure",$myarray)) { .' checked="checked" '.} .'...' 

this wrong. can't concatenate if statement that.

'.....'.(in_array("product fault/failure",$myarray) ? ' checked' : '').'...' 

Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

collision detection - C++ library for mesh to mesh intersection: what is available? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -