/** this function returns math expression into your form, the parameter is optional * quite simmilar to insertQuestion, but returns the output as a text instead of echoing */ function returnQuestion($question = QUESTION, $color = COLOR, $prime = 37) { //default prime is 37, you can change it when specifying the different parameter $output = MathGuard::produceOutput($question, $color, $prime); return $output; }