for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
function type_exists($type_name)
{
return in_array($type_name, [
"boolean",
"integer",
"double",
"string",
"array",
"object",
"resource",
"resource (closed)",
"NULL",
"unknown type"
]);
}