Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get basename without extension Laravel

use IlluminateSupportStr;

$string = Str::of('/foo/bar/baz.jpg')->basename('.jpg');

// 'baz'
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #basename #extension #Laravel
ADD COMMENT
Topic
Name
3+1 =