Jump to content
Sign in to follow this  
victor

performing calculation on string

Recommended Posts

hi , I have a simple question here.

say if I had a string set as var $test

$test = "12 - 12"

$test = "12 / 3"

how do I perform calculation on it ?

Share this post


Link to post
Share on other sites

hi , I have a simple question here.

say if I had a string set as var $test

$test = "12 - 12"

$test = "12 / 3"

how do I perform calculation on it ?

Do you mean like parsing text into usable data?

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  

×
×
  • Create New...