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 ? 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 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
Archived
This topic is now archived and is closed to further replies.