Skip to content

unamatasanatarai/php-function-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<?php

include __DIR__ . "/../vendor/autoload.php";

$var = "Hello World!";
c($var)
    ->str_rot13($var)
    ->strtoupper($var)
    ->strtolower($var)
    ->str_replace('u', '-', $var);

var_dump($var == "-ryyb jbeyq!");

About

PHP Function Chaining like in Java (?)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages