So I have a php class related to fractions, I do some calcs and when it comes to accessing the values I var_dump the output to get this:
object(Fraction)#1 (2) {
["numerator":"Fraction":private]=>
int(1)
["denominator":"Fraction":private]=>
int(4)
}
and print_r to get this:
Fraction Object(
[numerator:Fraction:private] => 1
[denominator:Fraction:private] => 4
)
I seem unable to access any of the objects numerator,denominator... Any suggestions to access them, Im not familiar with OOP and how to access objects.
Thank you in advance.