MOON
Server: Apache
System: Linux server1.primemusicproductions.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User: primrwxj (1001)
PHP: 8.3.3
Disabled: NONE
Upload Files
File: /home/primrwxj/thepassiveincomeideas.com/survey/plugins/Demo/demoAddEmFunction/exampleFunctions.php
<?php
/**
 * This file is part of reloadAnyResponse plugin
 */
namespace demoAddEmFunction;
class exampleFunctions
{
    public static function sayHello($message)
    {
        return "Hello ".$message;
    }
    public static function doHtmlList($elements)
    {
        if(!count($elements)) {
            return "";
        }
        $returnHtml = "";
        foreach($elements as $element) {
            if(strval($element)) {
                $returnHtml .= "<li>".$element."</li>";
            }
        }
        if($returnHtml) {
            $returnHtml = "<ul>".$returnHtml."</ul>";
        }
        return $returnHtml;
    }
}