Answers for "remove repeat char in sttring php"

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
0

remove certain haracters from a string php

$string = preg_replace("/[aeiou]/", '', $string);
Posted by: Guest on September-26-2021

Browse Popular Code Answers by Language