Skip to content

Duality of codes in documentation #2

@danon

Description

@danon

We should add a "PHP-complaint version" of codes in documentation, eg. on documentation code

pattern($p)->match($m)->first();

should also have a second (ultra pseudo-code) version

if (preg::match($p, $s, $m)) {
    return $m[0];
}
throw new SubjectNotMatchedException();

The T-Regx way should be the default tough.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions