Quote:
|
Originally Posted by JustBreathe
PHP Code:
function contains( strStack, strNeedle )
{ // Usage: container( this.var, "foo" );
for ( i = 0; i < strStack.length() - strNeedle.length(); i ++ )
if ( strStack.substring( i, strNeedle.length()) == strNeedle)
return true;
return false;
}
|
:X not needed dude.
if(foo.pos("bar") >= 0) {
}