public function searchInRowSet(string $columnName, $value, array $rowSet)
  {
    if (is_array($rowSet))
    {
      foreach ($rowSet as $key => $row)
      {
        if ((string)$row[$columnName]===(string)$value)
        {
          return $key;
        }
      }
    }

    return null;
  }
public function searchInRowSet(string $columnName, $value, array $rowSet)
  {
    if (is_array($rowSet))
    {
      foreach ($rowSet as $key => $row)
      {
        if ((string)$row[$columnName]===(string)$value)
        {
          return $key;
        }
      }
    }

    return null;
  }
public function searchInRowSet ( string $ columnName , $ value , array $ rowSet ) { if ( is_array ( $ rowSet ) ) { foreach ( $ rowSet as $ key => $ row ) { if ( ( string ) $ row [ $ columnName ] === ( string ) $ value ) { return $ key ; } } } return null ; }
Returns the key of the first row in a row set for which a column has a specific value. Returns null if no row is
found.

@param string  $columnName The column name (or in PHP terms the key in an row (i.e. array) in the row set).
@param mixed   $value      The value to be found.
@param array[] $rowSet     The row set.

@return int|string|null

@since 1.0.0
@api
Returns the key of the first row in a row set for which a column has a specific value . Returns null if no row is found .