$columnName = 'created_at'; $propertyName = \yii\helpers\Inflector::id2camel($columnName); echo $propertyName; // outputs "createdAt"
$actionId = 'actionIndex'; $methodName = \yii\helpers\Inflector::id2camel($actionId); echo $methodName; // outputs "actionIndex"Both of these examples use the `id2camel` method to transform one string into another using the camelCase format. The `Inflector` helper is part of the `yii\helpers` namespace, which is part of the core Yii framework library.