Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

OOP PHP

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.


<?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?

Name: Anonymous 2010-10-17 12:21

well, my php works today, i'm not sure why it was fucking up last night

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List