Extension:PhpTags/Quick start guide

Usage
There are two ways to use this extension on the wiki pages, and each of them has its own features.

The main way is to place the PHP code between the tags  and. In this case PhpTags returns "Strip marker" and the result is sent for processing to the MediaWiki Parser.

Another way is to use PhpTags as the parser function:

In this case PhpTags returns string that can be processed by other parser functions.
 * This string can also contain "Strip marker", if were used the functions which returns it.

Illustrative examples are given here.

Short syntax
For ease of use it is possible to use the short syntax. For functions:

This is equivalent to:

For variables:

This is equivalent to:

Examples here

PhpTags Code
PHP is easy to learn and popular programming language and PhpTags designed so to be as similar to native PHP. Thus in PhpTags should work correctly any PHP code.
 * PhpTags is an implementation of Magic expressions, rather than an alternative implementations of the PHP.
 * PhpTags does not contain any implementation constants, regular functions and objects, so their availability and results of the call depends on additional installed compatible extensions. A large number of native PHP functions implemented in Extension:PhpTags Functions. You just need to install it.
 * If several extensions implement one and the same constant, function, or object, for processing will be caused by extension which is included above in LocalSettings.php