Very new to classes in PHP, How can I access the variable from within the class inside a function?
//how can I echo the value of the title variable outside the class?
echo $title;
class myClass {
function form() {
echo '<input type="text" value="'.$title.'" />';
}
}
Thanks for the help