fork download
  1. <?php
  2.  
  3. // Скрываем ошибки
  4.  
  5. $arr = ['title' => 'Заголовок'];
  6.  
  7. // Неправильно
  8. echo $arr[title];
  9.  
  10. // Правильно
  11. echo $arr['title'];
  12.  
Success #stdin #stdout 0.04s 25688KB
stdin
Standard input is empty
stdout
ЗаголовокЗаголовок