No details, no space in the code, no comments * @ paramstring $ content Code content * @ returnstring * functionstrip_whitespace ($ content) {$ stripStr; analyze the php source code $ token=en_get_all ($ content); $ last_spacefalse; for ($ i0, $ jco
No details NONE/*** remove the blank and comments in the Code * @ param string $ content the code content * @ return string */function strip_whitespace ($ content) {$ stripStr = ''; // analyze the php source code $ tokens = token_get_all ($ content); $ last_space = false; for ($ I = 0, $ j = co
<无详细内容> <无>
/*** Remove blank spaces and comments in the Code * @ param string $ content the code content * @ return string */function strip_whitespace ($ content) {$ stripStr = ''; // analyze the php source code $ tokens = token_get_all ($ content); $ last_space = false; for ($ I = 0, $ j = count ($ tokens ); $ I <$ j; $ I ++) {if (is_string ($ tokens [$ I]) {$ last_space = false; $ stripStr. = $ tokens [$ I];} else {switch ($ tokens [$ I] [0]) {// filter various PHP comments case T_COMMENT: case T_DOC_COMMENT: bre Ak; // filter space case T_WHITESPACE: if (! $ Last_space) {$ stripStr. = ''; $ last_space = true;} break; case T_START_HEREDOC: $ stripStr. =" <