What does it mean to use " : " before a variable?
For example, :userIdin this code:
public function removeUser($userId)
{
$command = Yii::app()->db->createCommand();
$command->delete(
'tbl_project_user_assignment',
'user_id=:userId AND project_id=:projectId',
array(':userId'=>$userId,':projectId'=>$this->id));
}
This is PHP, MySQL code in the Yii framework.
user1991553
source
share