Bug #78205 [NEW]: echo is not working

From: Date: Tue, 25 Jun 2019 10:06:35 +0000
Subject: Bug #78205 [NEW]: echo is not working
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221477@lists.php.net to get a copy of this message
From: manojneed at gmail dot com Operating system: window7 PHP version: 7.1Git-2019-06-25 (Git) Package: *General Issues Bug Type: Bug Bug description:echo is not working Description: ------------ Hi, using PHP Version 7.1.12 when i am tring to printing Pattern like * * * * * * * * * * * * * * * my code <?php for($i=1;$i<=5;$i++){ for($k=5;$k>$i;$k--){ echo " "; //echo " "; } for($j=1;$j<=$i;$j++){ echo "*" ; } print "<br/>"; } ?> in the second loop my first echo giving me output like * ** *** **** ***** which is not as expected when i go with second echo code below for($i=1;$i<=5;$i++){ for($k=5;$k>$i;$k--){ //echo " "; echo " "; } for($j=1;$j<=$i;$j++){ echo "*" ; } print "<br/>"; } ?> i get my desired output like * ** *** **** ***** strange both echo syntax is same why first echo not working.please help me Test script: --------------- * ** *** **** ***** -- Edit bug report at https://bugs.php.net/bug.php?id=78205&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78205&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78205&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78205&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78205&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78205&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78205&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78205&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78205&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78205&r=support Expected behavior: https://bugs.php.net/fix.php?id=78205&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78205&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78205&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78205&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78205&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78205&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78205&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78205&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78205&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78205&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78205&r=mysqlcfg

« previous php.bugs (#221477) next »