0

I have problem with include array from file. On php 7.3 was good...

Included file:

<?
return ['key' => 'value'];

My controller:

<?
$data = include 'file.php';
var_dump($data);

Result:

['key' => 'value'];
int(1)

I want get my array from file without output when including. How I can solve this problem?

Sasha Sasha
  • 1
  • 1
  • 2

0 Answers0