Skip to content
Make room for learningYour learning studio
Return a useful result4 min

Loading your session…

A small idea, worth understanding

Return a useful result

Follow a PHP function's input and return value.

A function groups reusable work. Parameters receive inputs and return sends a result back to the caller.

echo displays output; return supplies a value for later expressions.

Two activities. No typing needed. You can always retry, or read an explanation and continue.

Read the full lesson first