Help Me Understand the Syntax

$cars = array("Volvo", "BMW", "Toyota");
array_splice($cars, 1, 1);

I’m a bit confused by nomenclature. In the php statements above, what terms are used for the various elements?
Is $cars a class or an object?
Is array a reserved word or keyword?
Are the 3 terms "Volvo", "BMW", "Toyota" referred to as variables?
Is array_splice referred to as a function?
In context, are $cars, 1, 1 called arguments?

Is $cars a class or an object? Variable
Are the 3 terms "Volvo", "BMW", "Toyota" referred to as variables? Strings entered as elements of an array
Is array_splice referred to as a function? Yes, an array function.
In context, are $cars, 1, 1 called arguments? Yes

1 Like

Thank you, pkdvalis.

1 Like