Please can anyone help, I’m trying to output a single item from a structure using a foreach loop and this outputs correctly (visually) but if I try to make a variable from it to store in an array, I get:
Array ( [0] => Kirby\Content\Field Object ( [a_code] => CODE01 )
not
Array ( [0] => CODE01 )
foreach ($shows as $show) {
$value = $show->a_code();
etc...
Is there any way of stripping this out? Thanks for any help.