this operator
Posted: Tue Jan 21, 2003 10:39 am
I trie this code from "teach yourself php 4 in 24 hours"
<?php
class first_class
{
var $name;
function sayHello()
{
print "hello";
}
}
$obj1 = new first_class();
$obj1 -> sayHello();
?>
I have easyphp and OS XP on my PC.
If i exec the module I have:
sayHello();?>
What is the problem?
<?php
class first_class
{
var $name;
function sayHello()
{
print "hello";
}
}
$obj1 = new first_class();
$obj1 -> sayHello();
?>
I have easyphp and OS XP on my PC.
If i exec the module I have:
sayHello();?>
What is the problem?