I have the line $str = "4sX3yY4mj2DT9gVOOS0x60onT08lwzLLZBqn8" . Now I want to remove the first 5 numeric characters from the string.
$str = "4sX3yY4mj2DT9gVOOS0x60onT08lwzLLZBqn8"
How to do this in php?
Use the limit parameter with preg_replace :
$str = preg_replace('~\d~', '', $str, 5);
Source: https://habr.com/ru/post/1262892/More articles:Problems with Angular NO_ERRORS_SCHEMA? - unit-testingvue.js conditional attribute mapping - vue.jstap for more information or stop the application - androidSpring: confusion over the right learning path - springKeycloak javascript - save keyclayak object - javascriptCheck if the value is within the range? - rCreating new build configuration results in header No error found - iosFrom the CMake "make" setting, use the -j "option by default - cmakeHow to get keyboard height in web application - javascriptHow to get the fully qualified target of the Invocation method? - dartAll Articles