Skip to main content

/images/icons/xs_temp.svg addslashes

value|addslashes
"O'Reilly"|addslashes    // Returns "O\'Reilly"
'test"quote'|addslashes  // Returns 'test\"quote'

/images/icons/xs_temp.svg capitalize

value|capitalize
"hello world"|capitalize    // Returns "Hello World"
"john doe"|capitalize      // Returns "John Doe"

/images/icons/xs_temp.svg concat

value|concat:string1:string2
"Hello"|concat:" ":"World"    // Returns "Hello World"
"user"|concat:"_":"123"       // Returns "user_123"

/images/icons/xs_temp.svg contains

value|contains:substring
"hello world"|contains:"world"    // Returns true
"hello world"|contains:"foo"      // Returns false

/images/icons/xs_temp.svg convert_encoding

value|convert_encoding:from:to
"text"|convert_encoding:"UTF-8":"ASCII"    // Converts encoding from UTF-8 to ASCII
"text"|convert_encoding:"ASCII":"UTF-8"    // Converts encoding from ASCII to UTF-8

/images/icons/xs_temp.svg detect_encoding

value|detect_encoding
"Hello"|detect_encoding    // Returns detected character encoding (e.g. "UTF-8")
"🌍"|detect_encoding      // Returns "UTF-8"

/images/icons/xs_temp.svg ends_with

value|ends_with:suffix
"test.jpg"|ends_with:".jpg"    // Returns true
"test.png"|ends_with:".jpg"    // Returns false

/images/icons/xs_temp.svg escape

value|escape
"<div>"|escape    // Returns "&lt;div&gt;"
"a & b"|escape    // Returns "a &amp; b"

/images/icons/xs_temp.svg from_utf8

value|from_utf8
"études"|from_utf8    // Converts from UTF-8 to binary (ISO-8859-1)
"🌍"|from_utf8        // Converts UTF-8 emoji to binary

/images/icons/xs_temp.svg icontains

value|icontains:substring
"Hello World"|icontains:"world"    // Returns true (case insensitive)
"Test123"|icontains:"TEST"         // Returns true

/images/icons/xs_temp.svg iends_with

value|iends_with:suffix
"test.JPG"|iends_with:".jpg"    // Returns true (case insensitive)
"test.png"|iends_with:".JPG"    // Returns false

/images/icons/xs_temp.svg istarts_with

value|istarts_with:prefix
"HELLO world"|istarts_with:"hello"    // Returns true (case insensitive)
"Test"|istarts_with:"test"           // Returns true

/images/icons/xs_temp.svg ltrim

value|ltrim:characters
"  hello"|ltrim        // Returns "hello"
"...test"|ltrim:"."    // Returns "test"

/images/icons/xs_temp.svg querystring_parse

value|querystring_parse
"name=john&age=25"|querystring_parse    // Returns {name: "john", age: "25"}
"x=1&x=2"|querystring_parse            // Returns {x: ["1", "2"]}

/images/icons/xs_temp.svg regex_match

value|regex_match:pattern
"test123"|regex_match:"\\d+"    // Returns ["123"]
"abc"|regex_match:"[a-z]"       // Returns ["a"]

/images/icons/xs_temp.svg regex_match_all

value|regex_match_all:pattern
"test123test456"|regex_match_all:"\\d+"    // Returns ["123", "456"]
"abc def"|regex_match_all:"[a-z]"          // Returns ["a", "b", "c", "d", "e", "f"]

/images/icons/xs_temp.svg regex_test

value|regex_test:pattern
"test123"|regex_test:"\\d+"    // Returns true
"abcdef"|regex_test:"\\d+"     // Returns false

/images/icons/xs_temp.svg regex_quote

value|regex_quote
".*+?^${}()|[]\\"|regex_quote    // Returns "\\.\*\+\?\^\$\{\}\(\)\|\[\]\\\\"
"[test]"|regex_quote            // Returns "\\[test\\]"

/images/icons/xs_temp.svg regex_replace

value|regex_replace:pattern:replacement
"hello123world"|regex_replace:"\\d+":"!"    // Returns "hello!world"
"test"|regex_replace:"t":"T"                // Returns "TesT"

/images/icons/xs_temp.svg rtrim

value|rtrim:characters
"hello  "|rtrim        // Returns "hello"
"test..."|rtrim:"."    // Returns "test"

/images/icons/xs_temp.svg split

value|split:delimiter
"a,b,c"|split:","    // Returns ["a", "b", "c"]
"test"|split:""      // Returns ["t", "e", "s", "t"]

/images/icons/xs_temp.svg sprintf

value|sprintf
"%s %d"|sprintf:"test":123    // Returns "test 123"
"%.2f"|sprintf:3.14159        // Returns "3.14"

/images/icons/xs_temp.svg starts_with

value|starts_with:prefix
"hello world"|starts_with:"hello"    // Returns true
"test123"|starts_with:"abc"         // Returns false

/images/icons/xs_temp.svg strip_accents

value|strip_accents
"résumé"|unaccent    // Returns "resume"
"café"|unaccent      // Returns "cafe"

/images/icons/xs_temp.svg strip_tags

value|strip_tags:allowed_tags
"<p>test</p>"|strip_html         // Returns "test"
"<p><b>test</b></p>"|strip_html:"<b>"    // Returns "<b>test</b>"

/images/icons/xs_temp.svg strlen

value|strlen
"hello"|strlen    // Returns 5
""|strlen         // Returns 0

/images/icons/xs_temp.svg substr

value|substr:start:length
"hello"|substr:1:3    // Returns "ell"
"test"|substr:0:2     // Returns "te"

/images/icons/xs_temp.svg to_lower

value|to_lower
"Hello World"|to_lower    // Returns "hello world"
"TEST"|to_lower          // Returns "test"

/images/icons/xs_temp.svg to_upper

value|to_upper
"hello world"|to_upper    // Returns "HELLO WORLD"
"test"|to_upper          // Returns "TEST"

/images/icons/xs_temp.svg to_utf8

value|to_utf8
"études"|to_utf8    // Converts to UTF-8 encoding
"test"|to_utf8      // Ensures UTF-8 encoding

/images/icons/xs_temp.svg trim

value|trim:characters
"  hello  "|trim        // Returns "hello"
"...test..."|trim:"."   // Returns "test"

/images/icons/xs_temp.svg url_addarg

value|url_addarg:name:value:encode
"https://example.com"|url_addarg:"page":"2":true    // Returns "https://example.com?page=2"
"https://example.com?x=1"|url_addarg:"y":"2":true   // Returns "https://example.com?x=1&y=2"

/images/icons/xs_temp.svg url_delarg

value|url_delarg:name
"https://example.com?page=2"|url_delarg:"page"    // Returns "https://example.com"
"https://example.com?x=1&y=2"|url_delarg:"x"      // Returns "https://example.com?y=2"

/images/icons/xs_temp.svg url_getarg

value|url_getarg:name:default
"https://example.com?page=2"|url_getarg:"page":""     // Returns "2"
"https://example.com"|url_getarg:"page":"1"           // Returns "1"

/images/icons/xs_temp.svg url_hasarg

value|url_hasarg:name
"https://example.com?page=2"|url_hasarg:"page"    // Returns true
"https://example.com"|url_hasarg:"page"           // Returns false

/images/icons/xs_temp.svg url_parse

value|url_parse
"https://user:pass@example.com:8080/path?q=1#hash"|url_parse    // Returns parsed URL object
"https://example.com/test"|url_parse                            // Returns parsed URL object

/images/icons/xs_temp.svg index

value|index:"search text"
"hello world"|index:"world"    // Returns 6
```javascript
"hello world"|index:"world"    // Returns 6
"hello world"|index:"WORLD"    // Returns false

/images/icons/xs_temp.svg iindex

value|iindex:"search text"
"hello world"|iindex:"world"    // Returns 6
"hello world"|iindex:"WORLD"    // Returns 6

/images/icons/xs_temp.svg regex_get_first_match

value|regex_get_first_match:pattern
"abc123def"|regex_get_first_match:"\\d+"    // Returns "123"
"no digits"|regex_get_first_match:"\\d+"   // Returns null

/images/icons/xs_temp.svg regex_get_all_matches

value|regex_get_all_matches:pattern
"abc123def456"|regex_get_all_matches:"\\d+"    // Returns ["123", "456"]
"no digits"|regex_get_all_matches:"\\d+"      // Returns []

/images/icons/xs_temp.svg replace

value|replace:search:replace
"hello world"|replace:"world":"Xano"    // Returns "hello Xano"
"foo bar foo"|replace:"foo":"baz"      // Returns "baz bar baz"

/images/icons/xs_temp.svg sql_alias

value|sql_alias
"user id"|sql_alias    // Returns "user_id"
"Order Total"|sql_alias // Returns "order_total"

/images/icons/xs_temp.svg sql_esc

value|sql_esc
"O'Reilly"|sql_esc    // Returns "O''Reilly"
"test; DROP TABLE"|sql_esc // Returns "test; DROP TABLE"

/images/icons/xs_temp.svg text_escape

value|text_escape
"<b>bold</b>"|text_escape    // Returns "&lt;b&gt;bold&lt;/b&gt;"
"a & b"|text_escape         // Returns "a &amp; b"

/images/icons/xs_temp.svg text_unescape

value|text_unescape
"&lt;b&gt;bold&lt;/b&gt;"|text_unescape    // Returns "<b>bold</b>"
"a &amp; b"|text_unescape             // Returns "a & b"
I