Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2753138
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
535 B
Referenced Files
None
Subscribers
None
README.md
View Options
WrappedString
=============
WrappedString
is
a
small
PHP
library
for
compacting
redundant
string
-
wrapping
code
in
text
output
.
The
most
common
use
-
case
is
to
eliminate
redundant
runs
of
HTML
open
/
close
tags
and
JavaScript
boilerplate
.
Here
is
how
you
use
it
:
```
php
use
Wikimedia
\
WrappedString
;
$
buffer
=
[
new
WrappedString
(
'
[
foo
]
'
,
'['
,
']'
),
new
WrappedString
(
'
[
bar
]
'
,
'['
,
']'
),
];
$
output
=
WrappedString
::
join
(
"\n"
,
$
buffer
);
// Result: '[foobar]'
```
License
-------
The
project
is
licensed
under
the
MIT
license
.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 20:51 (1 d, 5 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
35/41/583e2849e14c82a58965c55aa204
Default Alt Text
README.md (535 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment