Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php rand int

random_int ( int $min , int $max );
Comment

randhex php

function random_part() {
    return str_pad( dechex( mt_rand( 0, 255 ) ), 2, '0', STR_PAD_LEFT);
}

function randomHEX($amount) {
  $_result = "";
  for ($i = 0 ; $i < $amount; $i++) {
    $_result .= random_part();
  }
  return $_result;
}

//to get a 16 HEX number
echo randomHEX(8);
Comment

PREVIOUS NEXT
Code Example
Php :: how to separate admin and user login in laravel 
Php :: woocommerce_product_query 
Php :: php email sender 
Php :: how to split sting in php 
Php :: laravel mail 
Php :: middleware in laravel 
Php :: Warning: password_verify() expects parameter 2 to be string, array given in 
Php :: logout all users laravel 8 
Php :: laravel permissions package 
Php :: relationship in laravel 
Php :: php if statement with multiple conditions 
Php :: how to lookup value inside object php 
Php :: laravel redirect problem 
Php :: PHP OOP - Abstract Classes 
Php :: check box with value in php 
Php :: how to create object in php 
Php :: laravel permission create role 
Php :: route parameter type laravel 
Php :: laravel return redirect back with input except one filed 
Php :: wherenotnull laravel 
Php :: seguridad de las api en laravel 
Php :: replace special characters from string in codeigniter 
Php :: php ::class 
Php :: wordpress set category front end 
Php :: fpdf tutorial php mysql 
Php :: extract email from text 
Php :: form validation in php 
Php :: PHP number_format — Format a number with grouped thousands 
Php :: an einem string etwas anfügen php 
Php :: example of valid php variables 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =