Menu

Maslosoft Zamm Logo Maslosoft Zamm Documentation
Zamm is a documentation tool

Edit

Capture

Capture allows to grab inline PHP from documentation and display it's source elsewhere.

Example:

Is your name Adell?

echo sprintf('<em>Is your name %s?</em>', FF::create()->firstName);

Above statement is execued, it's code captured and displayed formatted. This is achevied by Capture class.

Code used in example is wrapped with open() and close()functions. To get Markdown wrapped code there is appended $md wrapper indicator.

Whole example, including capture calls:

Capture::open();
echo sprintf('<em>Is your name %s?</em>', FF::create()->firstName);
echo Capture::close()->md;