jsp: usebean, jsp: setproperty Detailed explanation

2023-01-01   ES  

Generation order number

function build_order_no() {    

    return date(‘Ymd’).substr(implode(NULL, array_map(‘ord’, str_split(substr(uniqid(), 7, 13), 1))), 0, 8);


Generate Guid

function guid() {    

    if (function_exists(‘com_create_guid’)) {        

        return com_create_guid();    

    } else {     


        $charid = strtoupper(md5(uniqid(rand(), true))); 

        $hyphen = chr(45);        

        $uuid   = chr(123)            

                 .substr($charid, 0, 8).$hyphen               

                 .substr($charid, 8, 4).$hyphen            

                 .substr($charid,12, 4).$hyphen            

                 .substr($charid,16, 4).$hyphen            



        return $uuid;    





Related Posts

Record once Elastic-JOB Faber Query and Basic Concept understanding

zabbix email alarm

ESD electrostatic protection diode silk print query, SOD-323 packaging model

yuv420p to RGB24mirinda

jsp: usebean, jsp: setproperty Detailed explanation

Random Posts

Use Arduino to control the robotic arm Ethan

1 1: How to explain to my girlfriend why 0.2 + 0.1 in the computer is not equal to 0.3?

jumpserver docker-compose deployment file yunson

Simulation signal Discuss in-depth transmission distance of 4-20mA current signal

Detailed explanation Flex layout Welkin