Archive for May, 2009
[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 [...]
an idea to fix innerHTML to table in IE (firefox)
I like to use innerHTML . It is fast and easy to use. But there are some problems under different browsers, such as innerHTML can’t use to insert to table elements under IE.
I have search on google with this issue. There are no good idea to fix innerHTML to table. Someone use Jquery append to [...]