Jump to content
Sign in to follow this  
mrossi

monthy sales / tax report ereg deprication

Recommended Posts

anyone know the new function for this old ereg command

 

$field = ereg_replace (",","",$field);

 

cannot figure out to replace it with the preg command

 

contribution month sales and tax is great but dead know to php 5.

 

thanks, matt

Share this post


Link to post
Share on other sites

Check this out:

 

str_replace

 

This didnt throw an error not sure if the syntax is correct:

 

$field = str_replace (",","",$field);

 

Thanks for the help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×