src/sql/MSqlRecord.php
public function getIndexOf(string $name): int
    {
        if (array_key_exists($name, $this->record) == false) {
            return -1;
        }

        $keyArray = array_keys($this->record);

        return array_search($name, $keyArray);
    }
public function getIndexOf(string $name): int
    {
        if (array_key_exists($name, $this->record) == false) {
            return -1;
        }

        $keyArray = array_keys($this->record);

        return array_search($name, $keyArray);
    }
public function getIndexOf ( string $ name ) : int { if ( array_key_exists ( $ name , $ this -> record ) == false ) { return - 1 ; } $ keyArray = array_keys ( $ this -> record ) ; return array_search ( $ name , $ keyArray ) ; }
Returns the position of the field called name within the record, or -1 if
it cannot be found. Field names are not case-sensitive. If more than one
field matches, the first one is returned.

@param string $name
@return int
Returns the position of the field called name within the record or - 1 if it cannot be found . Field names are not case - sensitive . If more than one field matches the first one is returned .