how to created random varchar number in php code example

Example 1: how to create random alphanumeric in php

<?php 
// online code for creating alphanumeric in php 
// this will generate 6 charactor, you can create as many just change the 6 from code
$pass = substr(str_shuffle("0123456789abcdefghijklmnopqrstvwxyz"), 0, 6);
echo $pass;

//output : 17w2y8
?>

Example 2: javascript detect right click

el.addEventListener('contextmenu', function(ev) {
    ev.preventDefault();
    alert('success!');
    return false;
}, false);

Tags:

Php Example