View Single Post
  #15  
Old 06-23-2006, 02:20 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by xAndrewx
I use this method, I'm sure it works too.

PHP Code:
function onCreated()
{
  
temp.test = {"hey""test"};
  if (
contains(temp.test"test")) //If 'test' is in temp.test, it'll echo 'Found' to the NC users
  
{
    echo(
"Found");
  }
    else
  {
    echo(
"Not Found");
  }

Same thing as the in operator? if("test" in temp.test) {?
He is trying to compare substrings, not check if a value is in an array, I believe.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote