PO::export()

最后更新于:2021-11-25 21:10:23

PO::export( bool$include_headers=true)

Exports the whole PO file as a string

参数

$include_headers

(bool) (Optional) whether to include the headers in the export

Default value: true

响应

(string) ready for inclusion in PO file string for headers and all the enrtries

源文件

文件: gc-includes/pomo/po.php

		function export( $include_headers = true ) {
			$res = '';
			if ( $include_headers ) {
				$res .= $this->export_headers();
				$res .= "nn";
			}
			$res .= $this->export_entries();
			return $res;
		}