Skip to content
This repository was archived by the owner on Sep 11, 2022. It is now read-only.

Commit 4f7ce40

Browse files
committed
split is deprecated, replace with explode
1 parent 51c2f49 commit 4f7ce40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

excel_reader2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function GetInt4d($data, $pos) {
7676
// http://uk.php.net/manual/en/function.getdate.php
7777
function gmgetdate($ts = null){
7878
$k = array('seconds','minutes','hours','mday','wday','mon','year','yday','weekday','month',0);
79-
return(array_comb($k,split(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts))));
79+
return(array_comb($k,explode(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts))));
8080
}
8181

8282
// Added for PHP4 compatibility
@@ -841,7 +841,7 @@ function _format_value($format,$num,$f) {
841841

842842
// Custom pattern can be POSITIVE;NEGATIVE;ZERO
843843
// The "text" option as 4th parameter is not handled
844-
$parts = split(";",$format);
844+
$parts = explode(";",$format);
845845
$pattern = $parts[0];
846846
// Negative pattern
847847
if (count($parts)>2 && $num==0) {

0 commit comments

Comments
 (0)