/ LJCPHPCodeDoc / LJCCommonLib / LJC / OutputLogCompare


Parameters
$methodName - The debug method name.
$result - The result value.
$compare - The compare to value.
$bracket - The optional bracket flag.

Syntax

PHP
public static function OutputLogCompare(string $methodName, string $result
, string $compare, bool $bracket = false, bool $output = true): string

Outputs the test compare text.

Example

PHP
 // Outputs the test compare text.
 private static function OutputLogCompare()
 {
   $methodName = "OutputLogCompare()";
 
   $result = "Test";
 
   $compare = "Test";
   $output = LJC::OutputLogCompare($methodName, $result, $compare
     , output: false);
 
   // output:
 
   $compare = "Te st";
   $output = LJC::OutputLogCompare($methodName, $result, $compare
     , output: false);
 
   // output:
   //
   // OutputLogCompare()
   // Test
   //  !=
   // Te st
 }

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