I am very new in PHP and I was checking whether all my controlers are in so how can I echo this? what I tried resulting nothing
$controllers = array_intersect($json_api->get_controllers(), $active_controllers );
$return = array(
'json_api_version' => $version,
'controllers' => array_values($controllers)
);
echo $return['controllers']['controllers'];
$json_api->get_controllers()and$active_controllersplease. Also, tell us what you want as an output.print_r($return["controllers"]);orvar_dump($return["controllers"]);(as long as you only want to PRINT these) These are even before the hello world though, you should see a php tutorial as soon as possible in order to correctly procede into your project ;)count($json_api->get_controllers()) === count($active_controllers)instead.