0 LIKES LikeUnLike
I'm designing a php sql database for an inventory of chemicals. However, some chemicals have only certain number in subscript. Example.... LaCl<sub>3</sub> - 7 H<sub>2</sub>O. I was wondering if there is a way to use a str_replace () to selectively replace certain number. For example, replace all numbers to the right of ANY letter with the subscript. I know how to use str_replace() to replace all numbers with there subscript versions but I don't know how to say ANY character in php.
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.