Bug tableau orderData - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of Bug tableau orderData.php

  1. <?php
  2. $orderData = ['sku1' => 'toto', 'sku2' => 'tata'];
  3.  
  4. for ($i = 0; $i < count($orderData) ; $i++) {
  5.     echo $i . ' ' . count($orderData) . "\n";
  6.     $orderData[$i]['orderCode'] = 'test';
  7. }
File Description
  • Bug tableau orderData
  • PHP Code
  • 11 Dec-2019
  • 193 Bytes
You can Share it: