public function arg(array $args, $char = "%")
  {
    $args = array_reverse($args, TRUE);

    foreach($args as $key => $val)
    {
      $args[$char . $key] = $val;
      unset($args[$key]);
    }

    $this->string = strtr($this->string, $args);

    return $this;
  }
public function arg(array $args, $char = "%")
  {
    $args = array_reverse($args, TRUE);

    foreach($args as $key => $val)
    {
      $args[$char . $key] = $val;
      unset($args[$key]);
    }

    $this->string = strtr($this->string, $args);

    return $this;
  }
public function arg ( array $ args , $ char = "%" ) { $ args = array_reverse ( $ args , TRUE ) ; foreach ( $ args as $ key => $ val ) { $ args [ $ char . $ key ] = $ val ; unset ( $ args [ $ key ] ) ; } $ this -> string = strtr ( $ this -> string , $ args ) ; return $ this ; }
This function replaces indexed or associative signs with given values.

@param  array  $args
@param  string $char
@return TeamSpeak3_Helper_String
This function replaces indexed or associative signs with given values .