Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

User.php

<?php

final class User
{

    public $first_name;
    public $last_name;

    public function getFullName(): string
    {
        return $this->first_name . " " . $this->last_name;
    }

}
Source by lancecourse.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+8 =