Jump to content

removing decimal numbers


purencool

Recommended Posts

Hi phpfreaks

 

I am trying to remove the first two numbers off a string. The string looks like 00-house or 23-water etc. I need to do a regex to remove them I have

this so far but it does not work.

 

$removed = preg_replace(array("/^\d[0-9]/", $folderItem);

 

Any help would be great.

Link to comment
https://forums.phpfreaks.com/topic/245663-removing-decimal-numbers/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.