php - What is the difference between a public = $default and public = $test? -


i'm trying learn new going through cakephp's tutorials , in section link database.php mamp/sql, asks change information in array calls public $default. there public $test array in same file.

what public $test array for? know can run page linking $default $test serve purpose?

ie:

class database_config {      public $default = array(         'datasource' => 'database/mysql',         'persistent' => false,         'host' => 'localhost',         'login' => 'admin',         'password' => 'admin',         'database' => 'blog_tutorial',         'prefix' => '',         //'encoding' => 'utf8',     );      public $test = array(         'datasource' => 'database/mysql',         'persistent' => false,         'host' => 'localhost',         'login' => 'admin',         'password' => 'admin',         'database' => 'blog_tutorial',         'prefix' => '',         //'encoding' => 'utf8',     ); } 

just curious, thanks!


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -