Hi!
I want to transfrom this php code in a function for Page.php to print the element of array.
My PHP function is:
<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x','y','z'));
print_r ($a);
?>
that I change in
function Cicle()
{
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x','y','z'));
return $a;
}
Silverstripe show me the word "arry" not his cvontent. what is wrong?