i read and i read and im confuse. ok next chapter.
PHP5 OO Language
wow now im actually learn Object Oriented thingy.
class Person
Method :
setName($name)
getName()
Properties :
$name
and this is the code :
class Person {
private $name;
function setName($name) {
$this->name = $name;
}
function getName() {
}
};
$judy = new Person();
$judy->setName("Judy");
$joe = new Person();
$joe->setName("Joe");
print $judy->getName() . "\n" ;
print $joe->getName() . "\n" ;
itll print the name.
Subscribe to:
Post Comments (Atom)
Starting to Learn Wordpress
I'm gonna start learning wordpress again. I know it's been a while and I'm using Blogger to write everything. I don't know...
-
Well if you don’t know what is Yii Framework. I recommend just go to the main site http://www.yiiframework.com And then http://www.yiiframe...
-
Read the first Part :: Contain the database and basic creating / generating models / crud CJUIDIALOG In these part 2 I will concentra...
-
im currently doing project using PHP 5 and MSSQL SERVER 2005. they use different server. one for web server and the other one is for Databas...
No comments:
Post a Comment