Skip to content

Instantly share code, notes, and snippets.

@andreia
Created December 21, 2019 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreia/5ec7471d76e3a549cfa62b5621793ca8 to your computer and use it in GitHub Desktop.
Save andreia/5ec7471d76e3a549cfa62b5621793ca8 to your computer and use it in GitHub Desktop.
<?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