Hello,
If i have a very basic class (for example):
<?php
class basic {
function printme() {
echo $me;
}
}
?>
How can I change the value of $me by accessing the class like this:
<?php
$a = new basic();
$a->setme("the_value_of_me");
//I know I can do this by just making a function setme
$a->me="the_value_of_me";
//I want to do this but I do not know how.
?>
Did i explain that clearly enough?
Thanks guys.