adplus-dvertising
frame-decoration

Question

In PHP, if $a represents an array with numeric indices, how is the first element accessed?

a.

$a[1]

b.

$a[0]

c.

$a.1

d.

$a.0

Answer: (b).$a[0]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In PHP, if $a represents an array with numeric indices, how is the first element accessed?

Similar Questions

Discover Related MCQs

Q. The statement used to create a trigger is ______________

Q. The number of values that can be returned from a given stored function is ______________

Q. Which statement is used to produce a stored function?

Q. What is defined to execute when the table is modified only?

Q. What returns a result to the client?

Q. The datatype best suited to store currency values is __________

Q. PHP variables are preceded by __________

Q. The output from PHP is __________

Q. The PHP interpreter switches mode continuously.

Q. The basic operation of PHP is to interpret a script.

Q. The datatype best suited to store currency values is ______________

Q. The AUTO_INCREMENT column attribute is best used with ______________

Q. What does ‘abc’ || ‘xyz’ result in if the PIPES_AS_CONCAT is disabled?

Q. What does the expression ’12 DIV 5′ evaluate to?

Q. By default, the AUTO_INCREMENT sequences begin at __________

Q. There can be more than one column per table with the AUTO_INCREMENT attribute.

Q. CGI.pm also supports an object oriented style of use.

Q. Which line is written at the top of the script to write a Perl script using CGI.pm?

Q. CGI stands for ______________

Q. The module that links DBI to the web is ______________