Skip to end of metadata
Go to start of metadata

A return type can either be any primitive-/class- or interface-type in the case where a value is actually returned or "void" if no value is returned. Have a look at the two examples which follows.

function void setName(string $name){} //function without return value
function string getName(){} //function with return value of type string
  • No labels