public function variable(Array $namespaces): string {
    $value = "";
    if (count($namespaces)) {
      for ($index = 0; $index < count($_SERVER['argv']); $index++) {
        if (!is_object($_SERVER['argv'][$index]) && in_array($_SERVER['argv'][$index], $namespaces)) {
          $value = "";
          if (isset($_SERVER['argv'][++$index])) {
            $value = $_SERVER['argv'][$index];
          }
          break;
        }
      }
    }
    return $value;
  }
public function variable(Array $namespaces): string {
    $value = "";
    if (count($namespaces)) {
      for ($index = 0; $index < count($_SERVER['argv']); $index++) {
        if (!is_object($_SERVER['argv'][$index]) && in_array($_SERVER['argv'][$index], $namespaces)) {
          $value = "";
          if (isset($_SERVER['argv'][++$index])) {
            $value = $_SERVER['argv'][$index];
          }
          break;
        }
      }
    }
    return $value;
  }
public function variable ( Array $ namespaces ) : string { $ value = "" ; if ( count ( $ namespaces ) ) { for ( $ index = 0 ; $ index < count ( $ _SERVER [ 'argv' ] ) ; $ index ++ ) { if ( ! is_object ( $ _SERVER [ 'argv' ] [ $ index ] ) && in_array ( $ _SERVER [ 'argv' ] [ $ index ] , $ namespaces ) ) { $ value = "" ; if ( isset ( $ _SERVER [ 'argv' ] [ ++ $ index ] ) ) { $ value = $ _SERVER [ 'argv' ] [ $ index ] ; } break ; } } } return $ value ; }
- Get variable by namespace
@param Array $namespaces Variable namespace
@return string Value of namespace
- Get variable by namespace