IsResource ########## :category: PHP :date: 2021-09-28 04:42:00 +0300 :tags: php 8, php 8.1, is_resource Inspired by `a recent discussion in the PHP Internals`__, I decided to provide a userland solution. Check this: .. __: https://externals.io/message/116127 .. code-block:: php = 7.2 get_resource_type($hash); // "Hash Context" in PHP <= 7.1, various errors otherwise // library functions: \Arokettu\IsResource\is_resource($hash); // true \Arokettu\IsResource\get_resource_type($hash); // "Hash Context" Get it on my dev portal: https://sandfox.dev/php/is-resource.html