Welcome Guest, Not a member yet? Register   Sign In
Issue using RecursiveIteratorIterator in a controller
#1

I am attempting to call php's RecursiveIteratorIterator through a function in my controller class and I get the debugger message, "Class 'App\Controllers\RecursiveIteratorIterator' not found." My controller operates fine without this, although I would like to have the option to use it. Here is my code. Why does it think I am trying to call a controller and how can I remedy the error? Thank you in advance for your consideration.
PHP Code:
$newDataIterator = new RecursiveIteratorIterator
   new RecursiveArrayIterator(json_decode($dataArrayTRUE)),
   RecursiveIteratorIterator::SELF_FIRST
); 
Reply


Messages In This Thread
Issue using RecursiveIteratorIterator in a controller - by kilometrocero - 05-25-2020, 11:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB