PHPackages                             webignition/disallowed-character-terminated-string - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webignition/disallowed-character-terminated-string

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webignition/disallowed-character-terminated-string
==================================================

A string terminated by one or more disallowed characters

2.0(6y ago)51.4M↓38.3%[1 PRs](https://github.com/webignition/disallowed-character-terminated-string/pulls)1MITPHPPHP &gt;=7.2CI passing

Since Jul 16Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/webignition/disallowed-character-terminated-string)[ Packagist](https://packagist.org/packages/webignition/disallowed-character-terminated-string)[ Docs](https://github.com/webignition/disallowed-character-terminated-string)[ RSS](/packages/webignition-disallowed-character-terminated-string/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (1)

Disallowed Character Terminated String [![Build Status](https://camo.githubusercontent.com/f44ec13bbd3610e2b653350af8d7df9fca810f3b8af50697d48ea43311d35f5d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f77656269676e6974696f6e2f646973616c6c6f7765642d6368617261637465722d7465726d696e617465642d737472696e672e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/webignition/disallowed-character-terminated-string)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#disallowed-character-terminated-string-)

Overview
--------

[](#overview)

A given string will be terminated when reaching the first of one or more specified terminating characters.

Useful when stripping out end-of-line comments or when discarding whatever follows a line return.

Example Usage
-------------

[](#example-usage)

```
