title: How to display Yes and No instead of binary 1 & 0 in fpdf?
body: <p>I am creating a pdf using fpdf and posting the input from the form. I want the value 1 0 to be yes No in the pdf.I have use this value 0 1 to do some calculation ....I just want to change in pdf...Now the pdf shows 1 for yes and 0 for No</p>
  
  <pre><code>&lt;select class="form-control" style="width:120px;" name="need"&gt;
    &lt;option value="0" &lt;?php prev_select("need", 0); ?&gt;&gt;No&lt;/option&gt;
    &lt;option value="1" &lt;?php prev_select("need", 1); ?&gt;&gt;Yes&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;?php
  function prev_select($field, $option){
      if (isset($_POST[$field])){
          if ($_POST[$field] == $option){
              ?&gt; selected="true" &lt;?php
          };
      }
  }
  </code></pre>