PHP ETL
  • Introduction
  • Getting Started
  • Extractors
    • Collection
    • CSV
    • Fixed Width
    • JSON
    • Query
    • Table
    • XML
  • Transformers
    • Convert Case
    • JSON Decode
    • JSON Encode
    • Rename Columns
    • Trim
    • Unique Rows
  • Loaders
    • Insert
    • Insert/Update
  • Helpers
  • Running Processes
Powered by GitBook
On this page
  • Options
  • Columns
  • Mode
  • Encoding
  1. Transformers

Convert Case

Convert string case.

$etl->transform('convert_case', $options);

Options

Columns

Columns that will be transformed. If empty, the transformation is applied to all columns.

Type

Default value

array

[]

$options = ['columns' => ['name', 'email']];

Mode

The mode of the conversion. It can be lower/lowercase, upper/uppercase or title

Type

Default value

string

lower

$options = ['mode' => 'upper'];

Encoding

The character encoding.

Type

Default value

string

utf-8

$options = ['encoding' => 'ASCII'];
PreviousTransformersNextJSON Decode

Last updated 6 years ago