用的是php-excelreader读取excel,其中类里有下面一段代码,用来格式化excel中的日期内容
php code/*if (divg_match(/[^hmsday\/\-:\s]/i, $formatstr) == 0) { // found day and time format$isdate = true;$formatstr = str_replace('mm', 'i', $formatstr);$formatstr = str_replace('h', 'h', $formatstr);//echo \ndate-time $formatstr \n;s}*/
但是错误提示是找不到divg_match()这个函数,有用过这个函数的吗?php怎么才能包含这个函数?
------解决方案--------------------
preg_match
