How can I use variable from the outside of the class? For example:
<?php
$outside = 'Hello';
class A {
function printme() {
print $outside;
}
}
$cls = new A();
$cls->printme();
?>
How can I do it? please :D