Created
December 21, 2019 00:33
-
-
Save andreia/5ec7471d76e3a549cfa62b5621793ca8 to your computer and use it in GitHub Desktop.
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 | |
use function Symfony\Component\String\b; | |
use function Symfony\Component\String\u; | |
// both are equivalent | |
$content = b('hello'); | |
$content = new ByteString('hello'); | |
// both are equivalent | |
$content = u('hello'); | |
$content = new UnicodeString('hello'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment