title: How to do the phpexcel Outside Border
body: <p>I use the below code for All Borders</p>
  
  <pre><code>$BStyle = array(
    'borders' =&gt; array(
      'allborders' =&gt; array(
        'style' =&gt; PHPExcel_Style_Border::BORDER_THIN
      )
    )
  );
  </code></pre>
  
  <p>Here i use </p>
  
  <pre><code>$objPHPExcel-&gt;getActiveSheet()-&gt;getStyle('A8:L8')-&gt;applyFromArray($BStyle);
  </code></pre>
  
  <p>But How can i give the Outside Border Like the below given screen</p>
  
  <p><img src="https://i.stack.imgur.com/rDzl6.png" alt="enter image description here"></p>