title: Retrieving a boolean value in a function using php
body: <pre><code>   function sample($number){
      if ($number % 2 == 0){
      echo "Even";
      }else{
      echo "Odd";
      }
  
      sample(3);
  </code></pre>
  
  <p>When I replace echo with return nothing happens? How do you know if it returns something? 
  The below sample is what concerns me. Thanks in advance!</p>
  
  <pre><code> function sample($number){
      if ($number % 2 == 0){
      return true;
      }else{
      return false;
      }
  
  sample(3);
  </code></pre>