code.fastix.org

Dateiansicht:

Datei:Projekte -> PHP73to74 -> test_has_error.php
md5:07f5cf9813012d73844829660aa10705
sha1:e2ca6d54bdffe094418ecb9866ce945119fdedb2
Download-Link:Download
  1. <?php
  2. error_reporting( E_ALL | E_DEPRECATED );
  3.  
  4. # This is the error:
  5. Just an error
  6.  
  7. ini_set( 'display_errors', 1 );
  8.  
  9. $bar='Hallo';
  10. $i=3;
  11. $tok=1;
  12.  
  13. $foo = $bar{1};
  14. $foo = $bar{ 1 };
  15. $foo = $bar{ 1+3 };
  16.  
  17. $foo = $bar{ $tok + 3 }; $foo = $bar{$i};
  18.