Reference - Single functions - colours


App: regression/pages - Page: globals
PHP
globals.php
HTML
globals.pad
Result
<?php

// object: reads $GLOBALS, and a sandboxed pass has the application globals taken out of it.
// In a real request a page variable is a global like any other and the reference resolves
// without help, which is what this page pins.

$colours = [ 'red', 'green' ];

?>
{echo '' | object:colours . object:colours}