Skip to content

Namespace Reference

Derek Snider edited this page May 19, 2026 · 1 revision

Namespace Function Reference

Quick-lookup table of all 109+ built-in namespace functions. Click a namespace name for full documentation and examples.

php:: — 36 functions

String functions

trim · ltrim · rtrim · chop · ucfirst · lcfirst · str_repeat · str_replace · str_pad · str_word_count · nl2br · str_rot13 · chunk_split · number_format · wordwrap

Array functions

explode · implode · count · array_push · array_push_int · array_pop · array_get · array_get_int · array_shift · array_unshift · array_reverse · array_unique · array_search · array_slice · array_merge · in_array · sort · rsort


perl:: — 21 functions

String functions

chop · chomp · lc · uc · ucfirst · lcfirst · reverse · index · rindex · length · substr

Array functions

split · join · push · pop · shift · unshift · scalar · grep · glob


python:: — 16 functions

Case transforms

title · swapcase

Alignment

center · ljust · rjust · zfill

Searching & counting

count · startswith · endswith

Character class tests

isdigit · isalpha · isalnum · isspace

Manipulation

replace · format


ruby:: — 12 functions

String functions

squeeze · tr · capitalize · delete · count · include · gsub · sub

Array functions

chars · rotate · compact · flatten


js:: — 6 functions

btoa · atob · encodeURIComponent · decodeURIComponent · parseInt · stringify


rust:: — 18 functions

String functions

trim · trim_start · trim_end · contains · starts_with · ends_with · replace · repeat · len · is_empty

Array functions

split · split_whitespace · join · first · last · get · push · pop


madc:: — 4 functions

regex_match · regex_search · regex_replace · array


std:: — 5 members

cout · cin · cerr · endl · for_each


See Namespaces for how namespace resolution, prefer, using, and #load work.

← Back to Home

Clone this wiki locally