Created
August 6, 2019 14:14
-
-
Save jonnybarnes/c65f3233755fa62e669233971c16e69a to your computer and use it in GitHub Desktop.
Used in my PHP Traits post for BuildEmpire
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Foo; | |
trait Bar | |
{ | |
public function baz(string $value): string | |
{ | |
// modify $value in some way | |
return mb_strtoupper($value) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment