Blockland Forums > Modification Help

[SOLVED] Using strLen, and strStr in a function

Pages: << < (3/3)

FFSO:

Yes greek you are correct, that is exactly what I was trying to do. It worked too.

ENDING CODE:

--- Code: ---function stringHasLetter(%string, %letter)
{
    if(%string $= "" || %letter $= "")
        return false;

    echo(strStr(%string, %letter));
    return (strPos(%string,%letter) >= 0);
}

--- End code ---


Pages: << < (3/3)

Go to full version