PHP comment in array? -


i'm trying comment out snippet between ~/**********/~ in below code inside of php function:

       $photobody[]="<tr><td colspan=\"".$cols."\">         <table width=\"100%\" border=\"0\">         <tr><td width=\"33%\">         <div align=\"left\" class=\"caption\">".$prev."</div></td>         <td width=\"33%\">                              ~/***** <div align=\"center\" class=\"caption\">photos          <strong>".($photonum-(($rows*$cols)-1))."</strong>          <strong>".$endnum."</strong> of          <strong>".count($photos)."</strong>     <br />".$photopage."</div> ****/~          </td><td width=\"33%\">         <div align=\"right\" class=\"caption\">".$next."</div></td></tr></table></td></tr>"; 

having difficulty. there need escape section comment out? little help. thanks.

you should close previous string " in order text after /* comment:

    "<td width=\"33%\">"                              /***** <div align=\"center\" class=\"caption\">photos      <strong>".($photonum-(($rows*$cols)-1))."</strong>      <strong>".$endnum."</strong> of      <strong>".count($photos)."</strong> <br />".$photopage."</div> ****/     "</td><td width=\"33%\">" 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -