PHP_56.php ➔ split()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
use DBSeller\Legacy\PHP56\Emulate;
3
4
if (version_compare(PHP_VERSION, '7.0') >= 0) {
5
6
  if (!function_exists('split')) {
7
8
    /**
9
     * Register one or more global variables with the current session
10
     *
11
     * @return bool
12
     */
13
    function split($pattern, $string) {
14
      return Emulate::split($pattern, $string);
15
    }
16
  }
17
}
18