Associative array in UML class diagram
问题 I have an array that I want to show in a class diagram. protected static $config = array( 'host' => 'localhost', 'username' => '', 'password' => '', 'dbname' => '' ); is this a correct way : $config( key: 'localhost', value: '', key: 'username', value: '', key: 'password', value: '', key: 'dbname', value: '') and underlined the whole line for static 回答1: Usually one doesn't use UML to configure things, but you can do it. You would need to create instance specifications to get the result you