Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • PHP has classes, doesn't it? Just define your output() function to return the type Output, which is a class that has main_flags and name as members. Commented Nov 17, 2018 at 10:05
  • @MichaelBorgwardt That seems interesting, can you please share a snippet of code of how that would look? Commented Nov 17, 2018 at 11:46
  • @DocBrown: it says specifically that it's his code, not an example for a general situation. Commented Nov 17, 2018 at 16:02
  • @coolpasta: it's been too long since I've done PHP, fortunately someone else came to the rescue. Commented Nov 17, 2018 at 16:03