Additional Information:
haystack.pos(needle) will return the position of needle in the haystack (string/variable).
Also since arrays are treated like strings, it can be used as a quick method to search an array as well, for arrays there's also haystack.index(needle).
Examples:
PHP Code:
function onCreated() {
// Position Example
temp.str = "hello world";
echo(temp.str.pos("world")); // will echo
// Index Example
temp.fruits = {
"apple", "orange", "grapes"
};
echo(temp.fruits.index("orange"));
}