create guid in php
function guidv4()
{
if (function_exists('com_create_guid') === true)
return trim(com_create_guid(), '{}');
$data = openssl_random_pseudo_bytes(16);
$data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100
$data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10
return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
}
Also in PHP:
- create project larave
- date("Y-m-d",
- ext-dom php 7.4 ubuntu
- clear laravel 5 cache\
- create seed file laravel
- Am having error running npm run dev in my laravel app
- array filter php get first object
- artisan config cache clear
- explode php
- debian install apache php
- error php code
- .net base64 encode decode in php
- clearview cache laravel
- convert lowercase to uppercase php
- catch an exception php
- base64 decode encode php
- Throw new error php
- duplicate values in array php
- echo all errors
- elevated th in dates format php
- find string in a string php
- executar comando linux php
- Customer::insert([ 'customer_name' => $request->customer name, 'customer mobile'=> $request->customer mobile, 'user_id'=>Auth::user()->id, 'created_at'=> Carbon::now() ]);
- <?php echo Date(Y); ?>