title: How to use STDOUT in php
body: <p>I am running into a project that read a stream from a txt file, so in the CLI, i write:</p>
  
  <pre><code>cat texte.txt|php index.php
  </code></pre>
  
  <p>In my <code>index.php</code> file i read the stream:</p>
  
  <pre><code>$handle = fopen ("php://stdin","r");
  </code></pre>
  
  <p>Now i have a <code>$result</code> that contains the result of my processing file and i want to output it with <code>STDOUT</code>, I looked in the manual, but I don't know how to use it, can you please make me a use example.</p>