Home  • Programming • PHP

23 ধাপে অবজেক্ট অরিয়েন্টেড প্রোগ্রামিং PHP ধাপ-5

getter and setter function:
<?php
class people{
var $name;
function set_name($new_name){
$this->name=$new_name;
}
function get_name(){
return $this->name;
}
}
?>

Comments 0


About Author
Jakir Hosan Zilon
Copyright © 2025. Powered by Intellect Software Ltd