- var_dump: documentation ( source)
- hex2bin: documentation ( source)
- rtrim: documentation ( source)
- str_replace: documentation ( source)
- base64_encode: documentation ( source)
<?php
$uuid = "0eae4703-dce3-4643-91c9-0592cc330150";
$reference = rtrim(base64_encode(hex2bin(str_replace('-', '', $uuid))), '=');
var_dump($reference);