Parameters
$xmlFile - The target XML file.
$sections - The sections array.
$rootName - The XML root name.
Syntax
PHP |
public static function Serialize(string $xmlFile, LJCSections $sections , string $rootName) : void
|
Serializes the data to an XML file.
Example
PHP |
$webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
require_once "$webCommonPath/LJCGenTextSectionLib.php";
LJCSections::Serialize("Sections.xml", $sections);
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.