Remove the left zero of the php number. // remove the left zero of the php number ?????? For ($ I = 0; $ I & lt; strlen ($ user_name); $ I ++ ){?????? // The pointer is moved to the right once in a loop ???????? $ NewUser [remove the left zero of the php number
// Remove the left zero in the php number
? ? ? ? ? ? For ($ I = 0; $ I <strlen ($ user_name); $ I ++ ){
? ? ? ? ? ? // Loop once, move the pointer once to the right
? ? ? ? ? ? ? ? $ NewUser [$ I] = substr ($ user_name, $ I, 4 );
? ? ? ? ? ? ? ? // If the first number to be intercepted is zero, the value 0 is changed to null.
? ? ? ? ? ? ? ? If (0 = substr ($ newUser [$ I], 0, 1 )){
? ? ? ? ? ? ? ? ? ? $ NewUserName [$ I] = str_replace (0, "", $ newUser [$ I]);
? ? ? ? ? ? ? ? } Else {
? ? ? ? ? ? ? ? // The loop ends and jumps out of the loop
? ? ? ? ? ? ? ? ? ? $ GetUserName = $ newUser [$ I];
? ? ? ? ? ? ? ? ? ? Break;
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }