Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Add sscanf to Stringable #40472

Merged
merged 3 commits into from
Jan 18, 2022
Merged

[8.x] Add sscanf to Stringable #40472

merged 3 commits into from
Jan 18, 2022

Conversation

amiranagram
Copy link
Contributor

@amiranagram amiranagram commented Jan 18, 2022

This small PR adds sscanf to Support Stringable. It returns a Collection.

Example:

[$filename, $ext] = Str::of('filename.jpg')->scan('%[^.].%s')->toArray();

@driesvints driesvints changed the title Add sscanf to Stringable [8.x] Add sscanf to Stringable Jan 18, 2022
@taylorotwell taylorotwell merged commit 96f0237 into laravel:8.x Jan 18, 2022
@amiranagram amiranagram deleted the stringable-sscanf branch January 18, 2022 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants