title: PHP : Cannot use empty array elements in arrays
body: <p>Im having trouble when i declare my array.
  below is my code</p>
  
  <pre><code>$data_prod = array(
      'product_sku' =&gt; $product_sku,
      'BrandUUID' =&gt; $BrandUUID,
      'MainCategoryUUID' =&gt; $MainCategoryUUID,
      'ParentCategoryUUID' =&gt; $ParentCategoryUUID,
      'ChildCategoryUUID' =&gt; $ChildCategoryUUID,
      'product_name' =&gt; $product_name,
      'product_type' =&gt; 'PROD',
      'price' =&gt; preg_replace("/[^0-9]/","", $value['PRICE']),
      'weight'=&gt;$value['WEIGHT'],
      'description'=&gt;$value['DESCRIPTION'],
      'image_thumbnail' =&gt; '/img/prod_gallery/'.$value['IMAGE'],
      'status'=&gt; $value['STATUS'],,
      'is_preorder'=&gt; $value['FLAG_PRE_ORDER'],
      'is_featured'=&gt; $value['FLAG_FEATURED'],
      'created_by' =&gt; 'SYSTEM',
      'created_date' =&gt; date('Y-m-d H:i:s'),
      'ByUserUUID' =&gt; $this-&gt;session-&gt;userdata('UserUUID')-&gt;AdminUUID,
      'ByUserIP' =&gt; $this-&gt;session-&gt;userdata('UserIP'),
      'OnDateTime' =&gt; date('Y-m-d H:i:s')
  );
  </code></pre>
  
  <p>But i always got an error </p>
  
  <pre><code>Array
  (
      [type] =&gt; 64
      [message] =&gt; Cannot use empty array elements in arrays
  </code></pre>
  
  <p>Could anybody give me solution about this problem ?</p>