This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function isBetween($number, $start, $end) { | |
return ( | |
( | |
$start < $number | |
&& $number < $end | |
) || $start === $number | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() | |
{ | |
function intFindParser (){} | |
intFindParser.prototype.id = 'intFindParser', | |
intFindParser.prototype.regExp = /(\d*)/, | |
intFindParser.prototype.is = function(s) { | |
var found = s.search(this.regExp); | |
if (found != -1) { | |
return true; | |
} |