Vidyalelo
PHP · Q4

Object Oriented Concept

Programming · PHP · question 4

Q4

Which characters is used to access property variables on an object-by-object basis?

A.
::
B.
=
C.
->
Answer
D.
.

Answer: Option C

Solution

Answer: Option C
Solution:
Example: $product1->title=”My Life”;