- file_put_contents(
- $this->fname,
- "<?php\n" .
- "// Generated by LCStoreStaticArray.php -- do not edit!\n" .
- "return " .
- var_export( $this->data[$this->currentLang], true ) . ';'
+ $writer = new StaticArrayWriter();
+ $out = $writer->create(
+ $this->data[$this->currentLang],
+ 'Generated by LCStoreStaticArray.php -- do not edit!'