/ LJCPHPCodeDoc / LJCGenTextSectionLib / LJCDirective / Find


Parameters
$line - The text line.

Returns

The Directive object or null.

Syntax

PHP
public static function Find(string $line) : ?LJCDirective

Find any Directives in a line.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCGenTextSectionLib.php";
 
 $line = "  // #SectionBegin Class
 $directive = LJCDirective::Find($line);

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.