title: Retrieve exit status from php script inside of shell script
body: <p>I have a bash shell script that calls a few PHP scripts like this.</p>
  
  <pre><code>#!/bin/bash
  
  php -f somescript.php
  
  php -f anotherscript.php
  </code></pre>
  
  <p>I want to compose an error log and/or an activity report based on the results of those scripts.</p>
  
  <p>Is there any way I can get the exit status of the php script in the shell script?</p>
  
  <p>I could either use integer exit statuses or string messages.</p>