php doc implementation