Name: Anonymous 2010-10-16 22:34
So i downloaded the latest Php version to try out this oop it has and i have some problems.
now my problem is that the first '>'@($bar->v1=1;) makes the php script turn off and go back to html i guess... was there something else i needed to do before i could just jump right into oop php?
<?php
class foo{
public $v1;
public $v2;
}
$bar = new foo();
$bar->v1=1;
$bar->v2=5;
echo $bar->v1;
?>now my problem is that the first '>'@($bar->v1=1;) makes the php script turn off and go back to html i guess... was there something else i needed to do before i could just jump right into oop php?