Check if a class exists – PHP

<?php

if ( class_exists( “class-name” ) ) {

echo “Exists”;

}

?>

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *