$Options = new Joomla\Registry\Registry(['cats' => [1 => '10', 10 => '100']]);
        $Arrays = (array)$Options->get('cats');
        var_dump($Arrays["10"], $Arrays[10]);
        exit();
Cannot get a value through a key; What's the matter, please?
| Labels | Added: 
? | ||
| Category | ⇒ | Code style | 
 
                 
                Nothing to do with Joomla! but how PHP converts objects to arrays:
If an object is converted to an array, the result is an array whose elements are the object's properties. The keys are the member variable names, with a few notable exceptions: integer properties are unaccessible;
See also this bug report
 
                @OctavianC Thank you!
| Status | New | ⇒ | Closed | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-02-05 12:48:19 | 
| Closed_By | ⇒ | ztj1993 | 
So you can get it, please explain, thank you!