add comments to php sample code