I wonder why yii convert integer to string ?
$data =Yii::$app->db->createCommand(‘SELECT id FROM foo’);
var_dump($data);die;
======================
here is the result of var_dump()
array (size=1)
‘id’ => string ‘5’ (length=1)
======================
I want the result data type as integer. Any solution ?