Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Exercise-1

Language: Layout:
+ ] Show input
Absolute running time: 0.18 sec, cpu time: 0.05 sec, memory peak: 25 Mb, absolute service time: 0,34 sec 
fork mode |  history  | discussion
 Glucose Level:205
 blood_pressure:100
 spo2:99
 weight:60
medicine_name-gliclazide
dose-once_in_day


 The method called:check_medicine
 The dose has to be changed:Array
(
    [0] => twice-in-a-day
)


 The method called:check_medicine
 The dose has to be changed:Array
(
    [0] => Gibtulio 5mg
    [1] => once-in-a-day
)

patient::__clone 
 cloning of the object


string(16) "Patient Details:"
object(patient)#2 (9) {
  ["data"]=>
  array(0) {
  }
  ["blood_pressure"]=>
  int(100)
  ["glucose"]=>
  int(205)
  ["spo2"]=>
  int(99)
  ["weight"]=>
  int(60)
  ["name"]=>
  string(7) "Vaidehi"
  ["age"]=>
  string(2) "21"
  ["gender"]=>
  string(6) "Female"
  ["city"]=>
  string(6) "Rajkot"
}
patient::__clone 
 cloning of the objectobject(patient)#3 (9) {
  ["data"]=>
  array(0) {
  }
  ["blood_pressure"]=>
  int(100)
  ["glucose"]=>
  int(205)
  ["spo2"]=>
  int(99)
  ["weight"]=>
  int(60)
  ["name"]=>
  string(7) "Vaidehi"
  ["age"]=>
  string(2) "21"
  ["gender"]=>
  string(6) "Female"
  ["city"]=>
  string(6) "Rajkot"
}




 Changed age:55
 Changed BP:250object(patient)#3 (9) {
  ["data"]=>
  array(0) {
  }
  ["blood_pressure"]=>
  string(3) "250"
  ["glucose"]=>
  int(205)
  ["spo2"]=>
  int(99)
  ["weight"]=>
  int(60)
  ["name"]=>
  string(7) "Vaidehi"
  ["age"]=>
  string(2) "55"
  ["gender"]=>
  string(6) "Female"
  ["city"]=>
  string(6) "Rajkot"
}

    
                
λ
.NET NoSQL database for rapid development