This is not the code you are looking for.  Unless you want to run it in php 5.3