ajf/escapes

Bareword escapes!

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 12

Watchers: 2

Forks: 1

pkg:composer/ajf/escapes

v1.0.1 2015-01-17 01:29 UTC

This package is not auto-updated.

Last update: 2025-10-07 09:41:59 UTC


README

escapes is a wee library for PHP 5.3+ that lets you use escapes as barewords, like so:

echo 'hello, world', \n;
echo 'I', \t, 'love', \t, 'tabs!', \n;
echo 'In Europe, they use ', \xE2, \x82, \xAC, ' (the Euro)', \n;

Supports the e, f, n, r, t, v and xXX (hex digits case-insensitive) escapes.

Install it with composer, just require ajf/escapes.

If you actually use this... dear god the future isn't bright