Is it possible to deploy variable in class php?

Question

Is it possible to deploy variable in class php?

 <?php
class get_variable {
    echo $deploy_variable;
}
$deploy_variable = 'Hell World';
$foo = new get_variable;
?>
0
Mano World 2 years 2019-10-28T06:11:11-05:00 0 Answers 67 views 0

Leave an answer

Browse
Browse