+ 1

What’s the error in this code

Please tell me what I am doing wrong https://code.sololearn.com/w7tcWKPeQ7BC/?ref=app

7th Sep 2022, 5:03 AM
Umar Farooq
5 Antworten
+ 1
and --->>> &&
7th Sep 2022, 5:22 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
We need to be clear that it is `name` field of `animal` class instance that we desire. Replace $name with $this -> name at line 15 and 23
7th Sep 2022, 11:22 AM
Ipang
+ 1
Ty
9th Sep 2022, 4:16 AM
Umar Farooq
0
Tried it but still doesn’t work
7th Sep 2022, 5:29 AM
Umar Farooq
0
And now remove the extra brackets and make the expression between if and { be in the same brackets ( )
7th Sep 2022, 6:32 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar