# Oop in php

**URL:** https://forum.kirupa.com/t/oop-in-php/278481
**Category:** Uncategorized
**Created:** [December 30, 2008, 10:06pm UTC](https://forum.kirupa.com/t/oop-in-php/278481 "2008-12-30T22:06:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wo1olf](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wo1olf](https://forum.kirupa.com/u/wo1olf)
#### Post date: [December 30, 2008, 10:06pm UTC](https://forum.kirupa.com/t/oop-in-php/278481/1 "2008-12-30T22:06:25Z")

</div>

i have a class in php. but when i declare the class private i got an error, when i remove it it does work. do have to adjust some easyphp settings in order ot do oop in php?  
thnks

code

class HtmlForm  
{  
private var $name;  
public HtmlForm($name)  
{  
$this-\>name = $name;  
}  
}  
i get an error telling that it is expecting a T\_VAR not TVARIABLE… what does it mean?
