Skip to content

Currency format #45

@alexjeen

Description

@alexjeen

You can easily add currency format, this works for us:

const DBFFIELD_TYPE_CURRENCY = 'Y';    // Currency

public function getCurrency($columnName)
{
    $s = $this->choppedData[$columnName];

    $s = unpack('q', $s);

    if ($s) {
        return $s[1] / 10000;
    }

    return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions