Answers for "php char remove"

PHP
-1

php remove control characters from string

preg_replace('/[[:cntrl:]]/', '', $input);
Posted by: Guest on June-29-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

Browse Popular Code Answers by Language