32 byte random string php
function generateRandomString($length = 25) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}
//usage
$myRandomString = generateRandomString(5);
Also in PHP:
- error php display
- console.log php variable
- aget date time in php
- cheak type in php
- array_key_exists($x, $p)
- codeigniter get last insert id
- date( "f y ") in php
- clear cache terminal laravel
- artisan cache clear
- clear cache in chrome
- Activate errors tracking in your script using the ini_set() function
- check array key e\
- array reverse order php
- check key exists in array in php
- connt string php
- eliminate duplicate values from associative array phph
- array inverted php
- eloquent model sort by ascending order
- file de redirection php
- file_get_contents(): SSL: Network is down
- db seed refresh
- date method php
- Armstrong number
- create a laravel app