PHP code example of gettonline / pipeit
1. Go to this page and download the library: Download gettonline/pipeit library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gettonline / pipeit example snippets
pipe('foo bar')
->strtoupper()
->value
// FOO BAR
pipe(' hello there')
->trim()
->str_replace('there', 'world', PIPE_IT)
->ucwords()
->value
// Hello World
pipe('gettonline.com')
(function ($v) {
return 'https://' . $v;
})
->value
// https://gettonline.com
print pipe([1,2,3])
->array_sum()
// 6