jd2007 Posted August 11, 2007 Share Posted August 11, 2007 Why this sign '+' is not being displayed when i fetch it from a mysql database ? Quote Link to comment https://forums.phpfreaks.com/topic/64387-why-this-sign-is-not-being-displayed-when-i-fetch-it-from-a-mysql-database/ Share on other sites More sharing options...
Barand Posted August 11, 2007 Share Posted August 11, 2007 By default, the + sign is not printed for positive numbers, but you can force it <?php $a = array (-20 , 30); foreach ($a as $num) printf ('%+d<br>', $num) ; ?> --> -20 +30 Quote Link to comment https://forums.phpfreaks.com/topic/64387-why-this-sign-is-not-being-displayed-when-i-fetch-it-from-a-mysql-database/#findComment-321054 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.