PHP Classes

File: docs/

Recommend this page to a friend!
  Classes of jawira  >  PHP Case Convert  >  docs/  >  Download  
File: docs/
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Case Convert
Convert strings between many naming conventions
Author: By
Last change:
Date: 2 years ago
Size: 728 bytes


Class file image Download

Known issues

Number is not a word

When using case-converter you cannot use a number as separator. In practice this means that a number is not considered as a word:

Phing targets

As shown in the previous example, there is no way to go back to the original input string (i.e. hello-8-world), in _kebab case_ this sting is written as hello8-world.

Other example:

| Code | Output | | ----------------------------- | ----------------- | | $name->toDot('REEL2REAL'); | r.e.e.l2.r.e.a.l | | $name->toDot('reel2real'); | reel2real | | $name->toDot('Reel2Real'); | reel2.real |

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