Answers for "get value of constructor in same class function call in php"

PHP
0

get value of constructor in same class function call in php

<?php 		
	class person {
		var $name;
		function __construct($persons_name) {		
			$this->name = $persons_name;		
		}		
 
		function set_name($new_name) {
		 	 $this->name = $new_name;
		}	
 
		function get_name() {		
		 	 return $this->name;		
		 }		
 
	}	 	
?>
Posted by: Guest on March-26-2021

Code answers related to "get value of constructor in same class function call in php"

Browse Popular Code Answers by Language