Answers for "php remove all single characters from string"

PHP
0

remove certain haracters from a string php

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

remove one character from string php

<?php
    $str = "geeks";
    $str1 = substr($str, 1);
    echo $str1."\n";
    $str1 = substr($str, 2);
    echo $str1; 
?>
Posted by: Guest on October-14-2021

Code answers related to "php remove all single characters from string"

Browse Popular Code Answers by Language