public static function form ($in = '', $data = []) {
		if (isset($in['insert']) || isset($data['insert'])) {
			return static::__callStatic_internal(__FUNCTION__, func_get_args());
		}
		if ($in === false) {
			return '';
		}
		if (is_array($in)) {
			return static::__callStatic_internal(__FUNCTION__, [$in, $data]);
		}
		if (isset($in['method'])) {
			$data['method'] = $in['method'];
		}
		if (!isset($data['method'])) {
			$data['method'] = 'post';
		}
		if (strtolower($data['method']) == 'post') {
			if (!is_array($in)) {
				$in .= static::form_csrf();
			} else {
				$in['in'] .= static::form_csrf();
			}
		}
		return static::wrap($in, $data, __FUNCTION__);
	}
public static function form ($in = '', $data = []) {
		if (isset($in['insert']) || isset($data['insert'])) {
			return static::__callStatic_internal(__FUNCTION__, func_get_args());
		}
		if ($in === false) {
			return '';
		}
		if (is_array($in)) {
			return static::__callStatic_internal(__FUNCTION__, [$in, $data]);
		}
		if (isset($in['method'])) {
			$data['method'] = $in['method'];
		}
		if (!isset($data['method'])) {
			$data['method'] = 'post';
		}
		if (strtolower($data['method']) == 'post') {
			if (!is_array($in)) {
				$in .= static::form_csrf();
			} else {
				$in['in'] .= static::form_csrf();
			}
		}
		return static::wrap($in, $data, __FUNCTION__);
	}
public static function form ( $ in = '' , $ data = [ ] ) { if ( isset ( $ in [ 'insert' ] ) || isset ( $ data [ 'insert' ] ) ) { return static :: __callStatic_internal ( __FUNCTION__ , func_get_args ( ) ) ; } if ( $ in === false ) { return '' ; } if ( is_array ( $ in ) ) { return static :: __callStatic_internal ( __FUNCTION__ , [ $ in , $ data ] ) ; } if ( isset ( $ in [ 'method' ] ) ) { $ data [ 'method' ] = $ in [ 'method' ] ; } if ( ! isset ( $ data [ 'method' ] ) ) { $ data [ 'method' ] = 'post' ; } if ( strtolower ( $ data [ 'method' ] ) == 'post' ) { if ( ! is_array ( $ in ) ) { $ in .= static :: form_csrf ( ) ; } else { $ in [ 'in' ] .= static :: form_csrf ( ) ; } } return static :: wrap ( $ in , $ data , __FUNCTION__ ) ; }
Rendering of form tag, default method is post, if form method is post - special session key in hidden input is added for security.

@static

@param array|string $in
@param array        $data

@return bool|string
Rendering of form tag default method is post if form method is post - special session key in hidden input is added for security .