What's the difference between accessing a class method via -> and via ::?
Answer / Barkha Rai
In PHP, the `->` operator is used for calling methods on an instance of a class. For example: `$obj->method()`. On the other hand, the `::` operator is used for static methods and function-like properties. It's called as `ClassName::methodName()`, without any object instance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Does jwt protect against csrf?
can anyone explain about stored procedure,Triggers and transaction in php?
What is the difference between overloading and overriding in php?
What do you mean range() in php?
Tell me what is the use of mysql_real_escape_string() function?
What is session php?
which institute provide better PHP trainning in delhi? please tell me how much salary can freshers get ? thanku
How to register a variable in PHP session?
Write a program in php to print a table of a number?
What are the advantages of stored procedures, triggers, indexes in php?
Is the cookies are available on cross domain?
What are php applications?