Hi @NWTD,
Your code here never prints anything? I’m guessing you want to print $output to screen? In that case you must echo it, and it is not necessary to return anything.
If this is part of a function, are you sure youre printing the result on the page?
Cheers