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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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