Reference - Parms functions - trim


App: regression/framework - Page: expressions/a_value_spliced_into_an_expression_compares_as_its_characters
PHP
expressions/a_value_spliced_into_an_expression_compares_as_its_characters.php
HTML
expressions/a_value_spliced_into_an_expression_compares_as_its_characters.pad
Result
<?php

$q
= 'ann@x.com';
$c = 'Paris, TX';
$t = ' {php:getcwd} ';
$people = [ [ 'name' => 'Ann', 'email' => 'ann@x.com', 'city' => 'Paris, TX' ],
[
'name' => 'Bob', 'email' => 'bob@x.com', 'city' => 'Rome' ] ];

?>
1[{people where='$email eq {$q}'}{$name}{/people}] 2[{people where='$email eq "{$q}"'}{$name}{/people}] 3[{people where='$city eq {$c}'}{$name}{/people}] 4[{if '{$c}' eq 'Paris, TX'}y{else}n{/if}] 5[{if {$c} eq 'Paris, TX'}y{else}n{/if}] 6[{case '{$q}'}{when 'ann@x.com'}hit{else}miss{/case}] 7[{echo php:str_contains('{$c}', ',') ? 'has' : 'no'}] 8[{echo '{$c}' . '' | php:strlen}] 9[{echo '{$c}' | php:strtoupper}] 10[{if '{$c}' . '!' eq 'Paris, TX!'}y{else}n{/if}] 11[{echo php:trim('{$t}')}] 12[{echo php:explode(' ', '{$t}') | php:implode('/', @)}]


App: regression/framework - Page: prefixes/php_nested_in_php
PHP
HTML
prefixes/php_nested_in_php.pad
Result
{echo php:strtoupper(php:trim('  a  '))}


App: regression/framework - Page: tags/the_innermost_tag_of_a_nest_is_the_first_one_finished
PHP
HTML
tags/the_innermost_tag_of_a_nest_is_the_first_one_finished.pad
Result
{echo php:strtoupper(php:trim('  ab  '))}