Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove everything after character

$fullpath = 'folderName/file.ext';
$folder = substr($fullpath, 0, strpos($fullpath, '/'));
echo $folder;
// Output => folderName
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #remove #character
ADD COMMENT
Topic
Name
3+7 =