Created
September 20, 2017 16:14
-
-
Save bwente/388af044c1dd613a54f92b94867c28e5 to your computer and use it in GitHub Desktop.
Truncates string prior to the stop string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return substr($input, 0, strpos($input, $options)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment