i am using mysqli oop with php and seen multiple methods inside mysqli, some of them have () and some dont have (). why so?
A. properties-(chat gpt said these are properties”without ()” sometimes it says these are functions,chat gpt is contradictory but i did not find a supporting answer anywhere)
connect_error
connect_errno
warning_count
affected_rows etc..
B. functions-
autocommit()
change_user()
character_set_name()
close() etc..
how can i decide whether to use any method/property with () or without (). i need proper solution.
i checked mysqli documentation too but there also it is not mentioned whether mysqli have some properties and some methods. chat gpt also said that the things have () are functions and the things which don’t have () are properties but i am unable to get list or properties and methods , in w3school website too there is no much info on this they have written all the methods all together here. somewhere they are using () and somewhere not.
i don’t want to memorize without understanding the concept.