What does this array expression mean?
金灶沐
金灶沐 2019-09-25 16:09:57
0
1
985

 protected $databaseRule = [

        'hostname' => 'require',

        'database' => 'require',

        'hostport' => 'require|number',

        'username' => 'require',

        'prefix'   => 'require|regex:/^[a-z0-9] [_]{1}/',

    ];

    protected $databaseMssage = [

##%
金灶沐
金灶沐

reply all(1)
Peter-Zhu

The array key name is just an ordinary string. As for characters with special meanings added in the middle, such as dots, its meaning is defined by its user. It can be understood as the prefix

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template