Answers for "write a php script to remove all characters from a string except a-z a-z 0-9 or " "."

PHP
3

php remove everything after character

$fullpath = 'folderName/file.ext';
$folder = substr($fullpath, 0, strpos($fullpath, '/'));
echo $folder;
// Output => folderName
Posted by: Guest on March-10-2020

Code answers related to "write a php script to remove all characters from a string except a-z a-z 0-9 or " "."

Browse Popular Code Answers by Language