Extending and Embedding PHP