Format nice looking php source code

Highlight your php code like following for good looking and easy reading.

<?php

//creates a unique id with the 'about' prefix
$a uniqid(about);
echo 
$a;
echo 
"<br>";

//creates a longer unique id with the 'about' prefix
$b uniqid (abouttrue);
echo 
$b;
echo 
"<br>";

//creates a unique ID with a random number as a prefix - more secure than a static prefix 
$c uniqid (rand(), true);
echo 
$c;
echo 
"<br>";

//this md5 encrypts the username from above, so its ready to be stored in your database
$md5c md5($c);
echo 
$md5c;
echo 
"<br>";

?>

Mechanism

Using PHP's Built-in Source Highlighter - highlight_string(). You can click the link to learn more about it. It is very easy. I just build this online demo to make the thing convenient.

Submit your code