title: How to make alignment on console in php
body: <p>I am trying to run a script through command prompt in PHP and trying to show the result in tabular form. But due to different character length of words I am not able to show the result properly align.</p>
  
  <p>I want result like this</p>
  
  <pre><code>Book                  ISBN      Department
  Operating System      101       CS
  C                     102       CS
  java                  103       CS
  </code></pre>
  
  <p>Can anyone please help me to get this output like this in php on console.</p>
  
  <p>Thanks in advance</p>