Unable to echo class variable! Can't find what is wrong. : > <?php
> 
> 	class userDetails { 		private $usersEmail; 		private $firstName;
> 		private $lastName;
> 
> 		// check if it's returned 		// echo $usersEmail.' '.$firstName.'
> '.$lastName; 		//setter for class properties 		public function
> __constructor($email,$fname,$lname) {
> 
> 			$this->usersEmail = $email; 			$this->firstName = $fname;
> 			$this->lastName = $lname; 		}
> 
> 		//getter for class properties 		function getPropertyEmail() {
> 			return $this->usersEmail; 		} 		function getPropertyFName() {
> 
> 			return ($this->firstName); 		} 		function getPropertyLName() {
> 			return ($this->lastName); 		} 	} 	 $something = "something";
> //$something is actually a $_GET['id']; sent from xhrobject 
> 	$createdUser = new userDetails($something,$something,$something);
> 	echo $createdUser->getPropertyEmail();

