Sun Oct 26, 2008 11:33 pm
<html>
<head>
<title>Accessing a Property from Within a Method</title>
<body>
<?php
class first_class{
var $name="Joe";
function sayHello(){
print "my name is $this->name<BR>";
}
}
$obj1 = new first_class();
$obj1->sayHello();
?>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.