Initialize an Associative Array with Key Names but Empty Values
问题 I cannot find any examples, in books or on the web, describing how one would properly initialize an associative array by name only (with empty values) - unless, of course, this IS the proper way(?) It just feels as though there is another more efficient way to do this: config.php class config { public static $database = array ( 'dbdriver' => '', 'dbhost' => '', 'dbname' => '', 'dbuser' => '', 'dbpass' => '' ); } // Is this the right way to initialize an Associative Array with blank values? //