Write a simple PHP class which displays the following string.
'MyClass class has initialized !'
<?php class MyClass { public function __construct() { echo 'MyClass class has initialized !'."\n"; } } $userclass = new MyClass; ?>
Sample Output:
MyClass class has initialized !
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output: