Skip to content

Instantly share code, notes, and snippets.

@andreia
Created December 21, 2019 02:15
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/e37e6d4a819e450056fc64d24027b1c9 to your computer and use it in GitHub Desktop.
Save andreia/e37e6d4a819e450056fc64d24027b1c9 to your computer and use it in GitHub Desktop.
<?php
$text =u('This is a déjà-vu situation.')
->trimEnd('.')
->replace('déjà-vu', 'jamais-vu')
->append('!');
// $text = 'This is a jamais-vu situation!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment