title: How to align text and image side by side in phpWord?
body: <p>I need to align a logo and text side by side. But when generating the word document, the text always comes beneath the logo image.I tried the solution pointed out here: 
  <a href="http://phpword.codeplex.com/discussions/232684" rel="nofollow">http://phpword.codeplex.com/discussions/232684</a></p>
  
  <p>But it didn't work for me.
  Here's what i tried (not the solution mentioned above)</p>
  
  <pre><code>$section = $PHPWord-&gt;createSection();
  $image = $section-&gt;addImage('_mars.jpg',array ('width'=&gt;100));
  // Add table
  $table = $section-&gt;addTable(); 
  for($r = 1; $r &lt;= 1; $r++) { // Loop through rows
      // Add row
      $table-&gt;addRow();
      for($c = 1; $c &lt;= 1; $c++) { // Loop through cells
        // Add Cell
       //I tried adding image in this line.
       $table-&gt;addCell(1750)-&gt;addText("Row $r,Cell ".
  $section-&gt;addImage('_mars.jpg',array('width'=&gt;100)));
      }
  }
  </code></pre>
  
  <p>and I'm getting this error in </p>
  
  <pre><code>$section-&gt;addImage() partCatchable fatal error: Object of class PHPWord_Section_Image could not be converted to string in 
  </code></pre>
  
  <p>Can anyone tell me how I can add image in table cell ?</p>