opt
/
cpanel
/
ea-wappspector
/
vendor
/
slevomat
/
coding-standard
/
SlevomatCodingStandard
/
Helpers
➕ New
📤 Upload
✎ Editing:
StringHelper.php
← Back
<?php declare(strict_types = 1); namespace SlevomatCodingStandard\Helpers; use function strlen; use function strpos; use function substr; /** * @internal */ class StringHelper { public static function startsWith(string $haystack, string $needle): bool { return $needle === '' || strpos($haystack, $needle) === 0; } public static function endsWith(string $haystack, string $needle): bool { return $needle === '' || substr($haystack, -strlen($needle)) === $needle; } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel