Create the class like such:
id = $newval;
}
//
// Return the value of $id.
//
function getId ( )
{
return $this->id;
}
}
?>
To retrieve this variable in another php script do this then:
x ( 5 );
print ( "Value of id is ".$news->getId() ); // This will p
Hi guys!!
Thnx a bunch, it worked out... I used the split function...
Meanwhile, hv another question !!
I hv a var $id declared within a function x of a class called A
I need to access this var $id in another php file...
I do the following:
A->$id);
//print ($news->id); ?>
How do i achieve
2 matches
Mail list logo