PAD - PHP Application Driver


home | manual | reference | regression | sequence | develop | apps


Reference - Parms functions - replace


App: check - Page: fragments/pipes_3
PHP
fragments/pipes_3.php
HTML
fragments/pipes_3.pad
Result
<?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