Computer Science, asked by devishalu93, 6 days ago

How can I define html class in a php variable.​

Answers

Answered by nikhithgandhivalaval
0

Answer:

Explanation:

Let's assume we have a class named Fruit. A Fruit can have properties like name, color, weight, etc. We can define variables like $name, $color, and $weight to hold the values of these properties.

When the individual objects (apple, banana, etc.) are created, they inherit all the properties and behaviors from the class, but each object will have different values for the properties.

Answered by ps2891977
0

Answer:

A variable starts with the $ sign, followed by the name of the variable.

Please mark me brainliest

Similar questions