Skip to content

aaroncadrian/string-operator-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String Operator Comparison

Installation

composer require aaroncadrian/string-operator-comparison

Quick Usage

Helper Function

return compare(1, '<' 2); // returns true
return compare(1, '>=' 2); // returns false

Static Method

use AaronAdrian\StringOperatorComparison\Comparison;
 
// ...

return Comparison::make(1, '<', 2); // returns true

Supported String Operators

  • >
  • >=
  • <
  • <=
  • =
  • ==
  • ===
  • <>
  • !=
  • !==

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages