WordPress at a glance
function is not described

PO::export() public WP 1.0

Exports the whole PO file as a string

{} It's a method of the class: PO{}

No Hooks.

Return

String. ready for inclusion in PO file string for headers and all the enrtries

Usage

$PO = new PO();
$PO->export( $include_headers );
$include_headers(true|false)
whether to include the headers in the export

Code of PO::export() WP 5.7

<?php
function export( $include_headers = true ) {
	$res = '';
	if ( $include_headers ) {
		$res .= $this->export_headers();
		$res .= "\n\n";
	}
	$res .= $this->export_entries();
	return $res;
}