PHP Bracket Checker Parser: Parse expressions and return if brackets match

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 92 All time: 9,462 This week: 279Up
Version License PHP version Categories
bracket-parser 1.0.0Freely Distributable5PHP 5, Validation, Testing, Parsers
Description Author

This class can parse expressions and return if brackets match.

It can take a text expression enclosed with brackets and determines if the number and order of open brackets correctly match the closing brackets.

Currently it supports brackets like (, [ and { .

Innovation Award
PHP Programming Innovation award nominee
June 2016
Number 12
Sometimes it is necessary to quickly check if an expression or even a programming code text has the right syntax, opening and closing the right brackets.

This class can implement that kind of quick check by looking if brackets match. It supports either (, [ and { brackets.


Manuel Lemos
  Performance   Level  
Name: Hakob Hakobyan <contact>
Classes: 2 packages by
Country: Armenia Armenia
Age: 28
All time rank: 35549 in Armenia Armenia
Week rank: 616 Up2 in Armenia Armenia Up
Innovation award
Innovation award
Nominee: 1x

Details

BracketParser

This Class gets a bracket series as an input and returns true or false if they are correctly configured.

  Files folder image Files  
File Role Description
Plain text file BracketParser.php Class Class source
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:92
This week:0
All time:9,462
This week:279Up

For more information send a message to info at phpclasses dot org.