function ReturnMonth($pesel) { $data = Dziusio_substr($pesel, 6); $temp = Dziusio_substr($data, 4); $month = Dziusio_substr_rev($temp, 2); return $month; }
function IsStringInString($subject, $seek) { $temp = 0; $legthStringFirst = StringLength($subject); $legthStringSecond = StringLength($seek); for ($i = 0; $i <= $legthStringFirst - $legthStringSecond; $i++) { if ($subject[$i] == $seek[$temp]) { $new = Dziusio_substr_rev($subject, $legthStringFirst - 1 - $i); $new1 = Dziusio_substr($new, $legthStringSecond); if ($new1 == $seek) { return true; } } } return false; // }