/** * @dataProvider removeLeftProvider() */ public function testRemoveLeft($expected, $str, $substring, $encoding = null) { $result = S::removeLeft($str, $substring, $encoding); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
public function removeLeft($string, $subString) { return Stringy::removeLeft($string, $subString); }
/** Определение колонки и порядка сортировки. Возвращает массив [colname, asc] */ public function processOrderColumnFromUrl($column) { // Обратная сортировка if (StaticStringy::startsWith($column, '_')) { $col = StaticStringy::removeLeft($column, '_'); if ($this->checkOrderByOptionExists($col)) { return array($col, false); } } return array($column, true); }
public static function removeLeft($string, $char) { return Stringy::removeLeft($string, $char); }
public function index($value, $params = array()) { return Stringy::removeLeft($value, array_get($params, 0)); }