Blockland Forums > Modification Help
[SOLVED] Using strLen, and strStr in a function
<< < (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 ---
Navigation
Message Index
Previous page

Go to full version