title: How to check if enum type?
body: <p>How can I tell if a variable is of type enum?</p>
  <p>I have installed PHP 8.1 on my Ubuntu 20.04. I'm testing the new &quot;enum&quot; types.</p>
  <p>Is something like that possible?</p>
  <pre><code>is_enum($var)
  gettype($var) === 'enum'
  </code></pre>