Jump to content

[SOLVED] String manipulation


thefollower

Recommended Posts

I was wondering what function is best to use for converting a negative number to positive?

 

So $Var = -400 would become  $Var = 400.

 

Im guessing theres 2 ways it can be done, removing the first char... or perhaps theres a function designed to change negative to positive. What function would i use ?

Link to comment
https://forums.phpfreaks.com/topic/115884-solved-string-manipulation/
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.