answersLogoWhite

0

A key is the name of a variable in an array ($array["key"]) and the index is the position it's at ($array = ["key" => 0], the index would be 0).

Keys and indices are the same if the array is not associative though ($array = [true], the key holding the value true is named 0 and is at index 0).

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

Difference between Index File and Index Sequential file?

index file is organized with the help of any key as index number at rondomly but index sequencial file organized with the help of any index sequentialy rajesh patel


What is the difference between primary key and unique index?

Primary key is a type of unique index with no null constraint on the columns involved. There can only be one Primary key whereas you can create other unique indexes on the table.


What is difference between sparse index and dense index?

Dense Index: An index record appears for every search key value in file. This record contains search key value and a pointer to the actual record. Sparse Index: Index records are created only for some of the records. To locate a record, we find the index record with the largest search key value less than or equal to the search key value we are looking for. We start at that record pointed to by the index record, and proceed along the pointers in the file (that is, sequentially) until we find the desired record. - - (ref: http://sawaal.ibibo.com/computers-and-technology/difference-between-sparce-index-dence-index-773764.html)


What are the difference's between contour interval and index contour?

A contour interval is the vertical distance between contour lines on a topographic map, representing the change in elevation. An index contour is a heavier contour line that is labeled with the elevation value, to help users quickly identify key elevations on the map.


What is the difference between a key and a legend?

There is no difference.


Difference between foreign key and composite key?

primary key: primary creates a clustered index on the column and it doesn't allow null values. unique key: unique key creates non clustered index by default.it allows "one null value". foreign key: A foreign key (FK) is a column or combination of columns used to establish and enforce a link between the data in two tables. Fore More information, you can visit this website:http://www.iyogibusiness.com


What is the difference between a Primary Key and a Secondary Key?

A Primary Key is a unique identifier for each record in a database table and is used to enforce entity integrity. A Secondary Key is a non-unique index that is used for querying and organizing data efficiently but does not have the constraint of uniqueness.


What is the definition of a map index?

map index: Graphic key primarily designed to give the relationship between sheets of a series, their coverage, availability, and further information on the series.


Another name for the primary key is the key?

Index key


Index and where it is located?

rend lake is located at what index key


What is an unidentified index in php?

Probably it's "Undefined Index".You must have seen it in some of the PHP notices or warnings.It comes, when you are working with arrays and the Index or Key your code is using doesn't actually exist.For Example,if you define an array:$a = array( 'a'=>'pak' , 'b' => 'asif' );having two Indexes (a & b),But later on, you code like:$a['c'];Now, c index doesn't actually existed in $a array, so a PHP warning / notice will appear on run time saying:Undefined Index 'c' ....Hope this help you!


What are the key differences between ES1 and ES2 futures?

ES1 and ES2 futures are both contracts that allow investors to speculate on the future price of the SP 500 index. The key difference between them is the expiration date. ES1 futures expire in March, June, September, and December, while ES2 futures expire in the months in between (February, May, August, and November). This difference in expiration dates can impact trading strategies and risk management for investors.