When PHP5 reads the EXCEL content, a regular expression function uses php-ExcelReader to read the EXCEL content. the class contains the following code, PHPcode * if (divg_match (& quot; [^ hmsday-: s] I & quot;, $ formatstr) 0) {founddayandtime PHP5 is a regular expression function used to read the EXCEL content.
The php-ExcelReader is used to read EXCEL files. the following code is used in the class to format the date content in EXCEL.
PHP code
/* If (pg_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 }*/
But the error message is that the pg_match () function cannot be found. have you used this function? How can PHP contain this function?
------ Solution --------------------
Preg_match