Reusing Old Tricks

Summary

As you can see, embedding the full force of the Zend Engine and PHP language into your application actually requires less work than extending it with new functionality. Because they both share the same basic API, learning to do one makes the other instantly accessible.

Through this chapter you explored the simplest form of embedding script code by taking advantage of the all-in-one macros PHP_EMBED_START_BLOCK() and PHP_EMBED_END_BLOCK(). In the next chapter, you'll peel back the layers of these macros to integrate PHP more seamlessly with your host application.

Категории