<?php
//$UUID = 42f704ab-4ae1-41c7-8c18-5558f944774
$UUID = "42f704ab4ae141c78c185558f9447748";
$UUID = substr($UUID, 0, 8) . '-' . substr($UUID, 8, 4) . '-' . substr($UUID, 12, 4) . '-' . substr($UUID, 16, 4) . '-' . substr($UUID, 20);
echo $UUID;
More Related Contents:
- Hint or partially hide email address with stars (*) in PHP
- How do I check if a string contains a specific word?
- Split a comma-delimited string into an array?
- startsWith() and endsWith() functions in PHP
- PHP – concatenate or directly insert variables in string
- Why does PHP consider 0 to be equal to a string?
- Print numeric values to two decimal places
- Replacing accented characters php
- How to remove accents and turn letters into “plain” ASCII characters? [duplicate]
- Convert a comma-delimited string into array of integers?
- How to get everything after a certain character?
- Get first 100 characters from string, respecting full words
- PHP remove special character from string
- Iterate over each line in a string in PHP
- Generate SEO friendly URLs (slugs) [closed]
- What is the most efficient way to count all the occurrences of a specific character in a PHP string?
- PHP: How can I explode a string by commas, but not wheres the commas are within quotes?
- How to get int instead string from form?
- Print newline in PHP in single quotes
- PHP: How to sort the characters in a string?
- Multi-line strings in PHP
- Why does PHP convert a string with the letter E into a number?
- Check if URL has certain string with PHP
- PHP: Split string into array, like explode with no delimiter
- How to open file in PHP that has unicode characters in its name?
- how to extract links and titles from a .html page?
- What’s the most efficient test of whether a PHP string ends with another string?
- Reverse the order of space-separated words in a string
- Search and replace multiple values with multiple/different values in PHP?
- finding common prefix of array of strings