some code to php