converting to php
conversion to php