Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 480 Bytes

nth_adapter.md

File metadata and controls

26 lines (16 loc) · 480 Bytes

NthAdapter

The NthAdapter transforms the input value from a nth representation into it's numeric value.

Ex. The string "1st" will be transformed into 1.

Usage

<?php

use Presta\BehatEvaluator\Adapter\NthAdapter;

$evaluate = new NthAdapter();
$value = $evaluate('10th');

// $value is equal to 10

You may return to the README or read other adapters guides.