Answers for "declare variable in php class"

PHP
1

declare variable in php class

<?php
class SimpleClass
{
   public $var1 = 'hello';
}
?>
Posted by: Guest on October-24-2020
0

php declare variable

// just assign it some value to declare it
$var = 'some value';
Posted by: Guest on February-17-2021

Code answers related to "declare variable in php class"

Browse Popular Code Answers by Language