| PHP |
|---|
|
public function AppendTags(string $tag, ?string $text, int $indent , bool $addBreak = false) |
| PHP |
|---|
$webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
require_once "$webCommonPath/LJCTextLib.php";
$builder = new StringBuilder();
$builder->AppendTags("First", "FirstValue", 0, true);
$builder->AppendTags("Second", "SecondValue", 1, true);
// $text =
// <First>FirstValue</First><br />
// <Second>SecondValue</Second><br />
$text = $builder->ToString();
|