一些数据来自_Posts,但其中一个我想要一个静态文本

on my controller Code

                       $data=array(
                        'username'=>$_POST['username'],
                        'password'=>sha1($_POST['password']),
                        'email'=>$_POST['email'],
                        'user_type'=>"user"
                    );

here o the (user_type) I want to add text like (user) this must insert static this controller is new it's works if I get it from post but I want static

regards

If its static, then you probably don't need to pass it in the array. Seems like the array is passing 'variables'. Static data is not technically variable by it's very description of 'static'.

Try like this:

$data=array(
  'username'=>$this->input->post('username'),
  'password'=>sha1($this->input->post('password')),
  'email'=>$this->input->post('email'),
  'user_type'=>'user'
);