|
home | manual | reference | regression | sequence | develop | apps |
Reference - Parms functions - trim
App: check - Page: fragments/pipes_3
PHP
fragments/pipes_3.phpHTML
fragments/pipes_3.padResult <?php
$rawText = ' hello world ';
$message = 'the quick brown fox';
?><p>Chain multiple pipes together:</p>
<p>Original: [{$rawText}]</p>
<p>Trimmed and uppercase: [{echo $rawText | trim | upper}]</p>
<p>Original: {$message}</p>
<p>Uppercase first letter of each word: {echo $message | ucwords}</p>
<p>Replace and uppercase: {echo $message | replace('fox', 'dog') | ucwords}</p>Chain multiple pipes together:
Original: [ hello world ]
Trimmed and uppercase: [HELLO WORLD]
Original: the quick brown fox
Uppercase first letter of each word: The Quick Brown Fox
Replace and uppercase: The Quick Brown Dog
|
home | manual | reference | regression | sequence | develop | apps |
(c) 2003-2025 Herbert Groot Jebbink