$username=$this->username?:'someone';$email=$this->email?:Yii::$app->params['adminEmail'];$password=Yii::$app->getSecurity()->generatePasswordHash($this->password?:'xx');$table=User::tableName();$auth_key=Yii::$app->security->generateRandomString();$status=User::STATUS_ACTIVE;$timestamp=time();$god=1;$words="inthe${table}hasarecordwhichcontainssomevalue:";$words.="'${username}','${email}','${password}','${auth_key}','${status}','${timestamp}','${god}','${timestamp}','${god}'";上面的word怎样拼凑才能优雅些?
呼啦一阵风
相关分类