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...

The first window displayed when you install openSUSE is the ____ window.

A. Boot Options B. Configuration C. System Options D. Welcome

Computer Science & Information Technology

How can you preview a graphic style on a selected object?

What will be an ideal response?

Computer Science & Information Technology

?Tiling is when a browser loads a background image and then repeats the image in both the vertical and horizontal directions until the entire background is filled.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Using even one ____ statement in a program is almost always a sign of bad programming structure.

A. enum B. typedef C. goto D. #define

Computer Science & Information Technology