I am new to OOP and was very pleased to find the tutorials by Stefan. However, I have run into some problems.
1. When creating an object with a constructor, I do not get any value back.
// Create an object with a constructor
$stefan = new person("Stefan Mischook");
echo "
Stefan's full name: " . $stefan->get_name();
The code above just prints out: Stefan's full name:
2. I uploaded Stefan's source code examples and do not get values back from those either. My server also reports errors on the public and protected functions in his code.
I have PHP 5.2.5 and I am on a shared server.
Does anyone know what the problem might be?