63 $version = strtolower($version);
64 $version = str_replace(
" ",
"", $version);
70 $a = explode(
".", $version);
73 $a[1] = ((int) $a[1] > 10) ? floor($a[1] / 10) .
"." . ($a[1] % 10) : $a[1] .
".0.0";
75 $version = $a[0] .
"." . $a[1];
83 $c = preg_match_all(
"/([a-z])/", $version, $matches);
87 $temp = explode(
".", $version);
91 for ($i = 0; $i < (4 - $n); $i++)
93 $version = $version .
".0";
99 foreach ($states as $value => $keys)
101 $version = str_replace($keys, $value, $version);
108 $temp_array = explode(
".", $version);
109 $n = count($temp_array);
112 for ($i = 0; $i < (4 - $n); $i++)
114 $version = $version .
".0";