Rappasoft
  • Packages & Docs
  • Products
  • Blog
  • Resources
  • Quizzes
  • Snippets
  • Sign In
  • Packages & Docs
  • Products
  • Blog
  • Resources
  • Quizzes
  • Snippets
  • About
Page illustration
Blurred shape
Blurred shape

doesntStartWith/doesntEndWith

  • Laravel
1use Illuminate\Support\Str;
2 
3Str::doesntEndWith('This is my name', 'dog'); // true
4Str::doesntEndWith('This is my name', ['name', 'foo']); // false
5 
6Str::doesntStartWith('This is my name', 'That'); // true
7Str::doesntStartWith('This is my name', ['This', 'That', 'There']); // false
Next Random Snippet
Permalink: https://rappasoft.com/snippets/4add5128-2fd6-4b39-8762-cce5fea5bd59
Source: https://laravel-news.com/laravel-12-20-0
Footer illustration

Documentation

  • Laravel Livewire Tables
  • Laravel Patches
  • Laravel Lockout
  • Laravel Authentication Log
  • Laravel Helpers
  • Laravel Livewire Tables Sponsored Documentation

Blog

  • Original Articles
  • Personal Favorites
  • Most Popular
  • Community Articles
  • Community Packages

Quizzes

  • 10 Questions
  • 25 Questions
  • 50 Questions
  • 75 Questions
  • 100 Questions

More

  • About
Rappasoft

© 2025 Rappasoft, LLC. · Terms · Privacy

Code highlighting provided by Torchlight