Semantics : ReturnStatement

ReturnStatement  ::=  return ( Expr | HereDoc | ArrayAllocator | StructAllocator | SetAllocator | Dom )?

Used by:  

The return statement works the same way as in Java.