SyntaxFix
Write A Post
Hire A Developer
Questions
using alberT and Dan Tao solution:
negative to positive and viceversa
$num = $num <= 0 ? abs($num) : -$num ;