Internally both call php_vsprintf() (which is a PHP core API function), there is not much of a difference. I'm have no particular opinion on it either, I would just use sprintf() as it is shorter and you don’t need an array. But really, do as you like.