src/Kinnngg/Swat4query/Server.php
public static function GetItemInfo($itemname, $itemchunks)
  {
    $retval = "-";
    for ($i=0;$i<count($itemchunks);$i++)
    if (strcasecmp($itemchunks[$i], $itemname) == 0) $retval = $itemchunks[$i+1];
    return  $retval;
  }
public static function GetItemInfo($itemname, $itemchunks)
  {
    $retval = "-";
    for ($i=0;$i<count($itemchunks);$i++)
    if (strcasecmp($itemchunks[$i], $itemname) == 0) $retval = $itemchunks[$i+1];
    return  $retval;
  }
public static function GetItemInfo ( $ itemname , $ itemchunks ) { $ retval = "-" ; for ( $ i = 0 ; $ i < count ( $ itemchunks ) ; $ i ++ ) if ( strcasecmp ( $ itemchunks [ $ i ] , $ itemname ) == 0 ) $ retval = $ itemchunks [ $ i + 1 ] ; return $ retval ; }
A Helper Function.
Returns Item Info from chunk.

@param [type] $itemname   [description]
@param [type] $itemchunks [description]
A Helper Function . Returns Item Info from chunk .