StringHelper

Last updated: August 12th, 2023
Release:

The SanitationHelper class provides some basic sanitizers for scalar types and the interfaces to build custom sanitatizers.

Example

use Stoic\Utilities\StringHelper;

$str = new StringHelper('Robert');
$str->replaceOnce('R', 'B'); // string is now 'Bobert'
echo($str->subString(0, 3); // prints out 'Bob'

Further Reading

Next Up

Continue to read about the PDO component, or visit the Table of Contents.