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 3:05

>>4
Not OP but: How is OP's question, (or even >>2,3 's comments) in anyway related to a web server's configuration?

PHP might be used for web apps and again, OP's code isn't that either.

So...

Does that look like a fucking Apache or Nginx config file to you, llama boy?

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