[php]vsprintf VS preg_replace
I want to formart a simple string in PHP. There are two ways to do this. One is vsprintf and another preg_replace. But who is faster? I have tested both of them. I find that vsprintf run more faster while can parse string in many formart. So why not use vsprintf to replcae preg_replace if [...]