App: regression/errors - Page: eval/a_list_handed_to_a_text_function_is_named
PHP
|
HTML
eval/a_list_handed_to_a_text_function_is_named.pad
|
Result
|
|
{echo 'a, b' | php:explode(',', @) | 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: expressions/an_echo_that_starts_with_a_list_pipes_the_list
PHP
|
HTML
expressions/an_echo_that_starts_with_a_list_pipes_the_list.pad
|
Result
|
|
[{echo [3,1,2] | php:max}][{echo php:explode(',', 'a,b') | php:count}][{echo [1,2,3] | php:count}][{echo [1,2] | php:json_encode}]
|
|
App: regression/framework - Page: lenient/a_list_handed_to_a_text_function_is_empty
PHP
lenient/a_list_handed_to_a_text_function_is_empty.php
|
HTML
lenient/a_list_handed_to_a_text_function_is_empty.pad
|
Result
|
<?php
// The lenient walk under test: with the syntax check off, what cannot run passes the // value through or yields empty, and the walk carries on.
$padCheckSyntax = FALSE;
?>
|
[{echo 'a, b' | php:explode(',', @) | trim}][{echo 'a, b' | php:explode(',', @) | upper}]
|
|
|