DaVinci ScriptDaVinci Script
Installation
Tutorials
Functions
OOP
Installation
Tutorials
Functions
OOP
  • Guide

    • Installation
    • Tutorials
    • Functions
    • OOP

OOP

Classes

<?davi

// Define a class
class Person {
    public function greet() {
        echo("Hello, my name is Bozhidar!");
    }
}

// Create an instance of the class
$person = new Person();
$person->greet();

// output: "Hello, my name is Bozhidar!"

?>
Last Updated:
Contributors: Bozhidar
Prev
Functions