â ī¸ Warning â ī¸ Deprecated Code! This video tutorial contains outdated code.
đĄ If you wish to update it, any AI assistant will update the code for you in seconds.
đĄ If you wish to update it, any AI assistant will update the code for you in seconds.
Using the get_class Function
The get_class() function will return the class name that an object is an instance of.
<?php
include_once("class1.php");
$myObj = new class1();
echo "<h2>".get_class($myObj)."</h2>";
?>