Hi
can anyone help me out here, I did a class working fine but i can't make objects out of it. do i need to include the file that has the class in my new file? with an include statement?
say i have this.
#file 1
<?php
class foo
{
....
}
?>
#file 2
<?php
$obj = new foo();//is this valid?
/*
or should i use it like this first
/*
#include "file1.php"
$obj = new foo();
?>