adplus-dvertising
frame-decoration

Question

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

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, how is the first element accessed if $a represents an array with numeric indices?

Similar Questions

Discover Related MCQs

Q. Arrays can have associative indices in PHP.

Q. Which operator is used to access property of an object in PHP?

Q. How is the binary log rotated?

Q. How is a delimited-text data file reloaded?

Q. Which program performs logical backups?

Q. The option that suppresses output unless there are errors in the table is _____________

Q. What is the return value from operations returning a row count?

Q. Functions are called and pointers to structures are used while using DBI API.

Q. The mode of search in which the search string is parsed into words and the search looks for rows is ________________

Q. What is the hub of a MySQL installation?

Q. The place where the server stores its databases and status files are called the data directory.

Q. Which program copies the databases from one server to another?

Q. To use ‘mysqldbcopy’ which privileges are required on the source server?

Q. The program that performs logical backups is _____________

Q. In ‘mysqldump’ which option is used to make all tables in the destination databases to use a different storage engine?

Q. Which function returns reference to hash of row values?

Q. The function ‘fetchrow_hashref()’ returns reference to hash of row values keyed by ______________

Q. Which function returns reference to array of row values?

Q. The MySQL server is poorly configurable.

Q. Multiple MySQL servers can be easily run on the same machine.