Embed

To embed, or to be embedded, is integrating PHP code into another context, or vice versa.

Traditionaly, it is possible to embed PHP inside HTML files: here, PHP embeds HTML. It is also possible to execute PHP code inside other languages, such as Java: in this case, Java embeds PHP.

Embeding usually means that the whole PHP engine is included in another technology: there, it acts as a part of that system. On the other hands, PHP extensions are a way to extend PHP features with other technologies. Here, the relationship is at the feature level, and may be tailored to PHP, rather than simply handing code as text to PHP, and acting upon its returned value.

Documentation

See also Java. PHP. PHP in Java!.

Related : Extensions, PHP Runtime