echo error code example Example 1: bash echo to stderr >&2 echo "error" Example 2: echo errors php <?php error_reporting(E_ALL); ?>