Is there a function which will add a + to integers which are positive?
Its easy saying if($int>0) $int = '+' . $int; etc etc but if i could just do it in a swift function...
No, I'm afraid there isn't. Create your own function for this.
okey dokey, thanks for the help!
<?php function add_sign($a) { if($a>0) {return '+' . $a;} return $a; } ?>
i can write my own, you know.
I was just trying to be helpful. Next time I'll assume you already know the answer to your question and not waste my time.