To compile the statement into an if statement... What is the concept of the red-number? $ Keyc = $ ckey_length? ($ Operation = 'decode '? Substr ($ string, 0, $ ckey_length): substr (md5 (microtime (),-$ ck calculate and compile it into the if statement...
What is the concept of the red-number?
$ Keyc = $ ckey_length? ($ Operation = 'decode '? Substr ($ string, 0, $ ckey_length): substr (md5 (microtime (),-$ ckey_length )):'';
------ Solution --------------------
Refer to the manual for turning over the 2nd parameters of the substr function.
------ Solution --------------------
Discussion
What is the concept of the red-number?
$ Keyc = $ ckey_length? ($ Operation = 'decode '? Substr ($ string, 0, $ ckey_length): substr (md5 (microtime (),-$ ckey_length )):'';
------ Solution --------------------
PHP code
If ($ ckey_length) {if ($ operation = 'decode') {$ keyc = substr ($ string, 0, $ ckey_length );} else {$ keyc = substr (md5 (microtime (),-$ ckey_length) ;}} else {$ keyc = '';}