<?php


class DB {

    public $name = "Jack";
    public $email;


    public function printPassword($password) {

        return "here is my $password";
    }


    public function printInfo($password) {

        return "this is the name of the user " . $this->name . " and here is the password " . $this->printPassword($password);

    }




} 


$db = new DB;

echo $db->name;

$db->email = "mohamed@gmail.com";

echo "<br>";


echo $db->email;
echo "<br>";

echo $db->printPassword(1234);


echo "<br>";

echo $db->printInfo(12345);


$db2 = new DB;
echo "<br>";
echo $db2->printInfo(1234521);
// var_dump($db);

