Which of the following expressions shows a correct PHP array definition?

a. $products = 'Tires':'Oil':'Spark Plugs';
b. $products = ['Tires', 'Oil', 'Spark Plugs'];
c. $products = ('Tires', 'Oil', 'Spark Plugs');
d. $products = {'Tires', 'Oil', 'Spark Plugs'};

b. $products = ['Tires', 'Oil', 'Spark Plugs'];

Computer Science & Information Technology

You might also like to view...

What are U X designer issues?

What will be an ideal response?

Computer Science & Information Technology

Briefly explain the difference between the Bring to Front and Bring Forward commands.

What will be an ideal response?

Computer Science & Information Technology