array = {{"key", "value"}, {"key", "value"}}
PHP Code:
function getIndexWithName( array, name )
{
for ( temp.cell: array )
{
if ( temp.cell[0] == name )
return temp.cell[1];
}
return null;
}
You can create your own functions of the sort...
PHP Code:
function indexOf( array, name )
{
for ( i = 0; i < array.size(); i ++ )
if ( array[i][0] == cellName )
return i;
return -1;
}
function setCellWithName( array, name, value )
{
if ( indexOf( array, name ) != -1 )
array[ indexOf( array, name ) ][1] = value;
return array;
}
... etc, etc...