Reference - Parms functions - substr


App: regression/common - Page: misc/eval


App: regression/framework - Page: expressions/an_infix_test_as_an_argument_of_a_call_is_that_argument
PHP
HTML
expressions/an_infix_test_as_an_argument_of_a_call_is_that_argument.pad
Result
{set $n = 3}{set $s = 'ab'}[{echo php:var_export($n in (5), 1)}][{echo php:strval($n in (3))}][{echo php:max(1, $n + 1 in (4))}][{echo php:var_export($n not in (5), 1)}][{echo php:var_export(php:substr($s, 0, 1) like 'a%', 1)}][{echo php:str_repeat('x', $n in (3) ? 2 : 1)}][{echo $s | replace('a', $n in (3))}][{echo php:max(php:min(4, 9), $n range (1, 5))}][{echo php:max(1, in (3))}]


App: regression/framework - Page: tags/a_pipe_function_used_as_a_tag_wins_over_php
PHP
HTML
tags/a_pipe_function_used_as_a_tag_wins_over_php.pad
Result
[{substr 0, 2}abcdef{/substr}][{trim}  x  {/trim}][{echo php:substr('abc', 1)}]