Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. <?php
  2. // Compute the translation id for the XLIFF catalog as Symfony (4.x) does
  3. $source = 'A string to be translated';
  4. echo strtr(substr(base64_encode(hash('sha256', $source, true)), 0, 7), '/+', '._');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement