Bitrix API

StringHelper

String functions

Tags
subpackage

main

Table of Contents

Methods

camel2snake()  : string
Changes registry from CamelCase to snake_case
isStringable()  : bool
Checks if $value is convertable in string
snake2camel()  : mixed
Changes registry from snake_case or SNAKE_CASE to CamelCase
str_replace()  : mixed
Compatible with php 8 for nested arrays. Only the first level of the array is processed.
strtoupper()  : mixed
Regular uppercase with result cache

Methods

camel2snake()

Changes registry from CamelCase to snake_case

public static camel2snake(mixed $str) : string
Parameters
$str : mixed
Return values
string

isStringable()

Checks if $value is convertable in string

public static isStringable(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

snake2camel()

Changes registry from snake_case or SNAKE_CASE to CamelCase

public static snake2camel(mixed $str) : mixed
Parameters
$str : mixed

str_replace()

Compatible with php 8 for nested arrays. Only the first level of the array is processed.

public static str_replace(mixed $search, mixed $replace, mixed $str) : mixed
Parameters
$search : mixed
$replace : mixed
$str : mixed

strtoupper()

Regular uppercase with result cache

public static strtoupper(mixed $str) : mixed
Parameters
$str : mixed

        
On this page

Search results