1

How to load normal files using composer actually psr-4 loader classes along with namespaces I know but if we have normal files inside that function for example if have functions and arrays so how can access arrays from that file like this

<?php 
  $default = ['controller' => 'welcome','method' => 'index', 'params', [] ];
  function myFunc(){
       echo "My func function!";
  }
 ?>
Dharman
  • 30,962
  • 25
  • 85
  • 135

0 Answers0