reverse var_dump - 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 reverse var_dump.php

  1. <?php
  2. function unvar_dump($str) {
  3.     if (strpos($str, "\n") === false) {
  4.         //Add new lines:
  5.         $regex = array(
  6.             '#(\[.*?\]=>)#',
  7.             '#(string\(|int\(|float\(|array\(|NULL|object\(|})#',
  8.         );
  9.         $str = preg_replace($regex, "\n\1", $str);
  10.         $str = trim($str);
  11.     }
  12.     $regex = array(
  13.         '#^\040*NULL\040*$#m',
  14.         '#^\s*array\((.*?)\)\s*{\s*$#m',
  15.         '#^\s*string\((.*?)\)\s*(.*?)$#m',
  16.         '#^\s*int\((.*?)\)\s*$#m',
  17.         '#^\s*bool\(true\)\s*$#m',
  18.         '#^\s*bool\(false\)\s*$#m',
  19.         '#^\s*float\((.*?)\)\s*$#m',
  20.         '#^\s*\[(\d+)\]\s*=>\s*$#m',
  21.         '#\s*?\r?\n\s*#m',
  22.     );
  23.     $replace = array(
  24.         'N',
  25.         'a:\1:{',
  26.         's:\1:\2',
  27.         'i:\1',
  28.         'b:1',
  29.         'b:0',
  30.         'd:\1',
  31.         'i:\1',
  32.         ';'
  33.     );
  34.     $serialized = preg_replace($regex, $replace, $str);
  35.     $func = function($match) {
  36.         return 's:'.strlen($match[1]).':"'.$match[1].'"';
  37.     };
  38.     $serialized = preg_replace_callback(
  39.         '#\s*\["(.*?)"\]\s*=>#', 
  40.         $func,
  41.         $serialized
  42.     );
  43.     $func = function($match) {
  44.         return 'O:'.strlen($match[1]).':"'.$match[1].'":'.$match[2].':{';
  45.     };
  46.     $serialized = preg_replace_callback(
  47.         '#object\((.*?)\).*?\((\d+)\)\s*{\s*;#', 
  48.         $func, 
  49.         $serialized
  50.     );
  51.     $serialized = preg_replace(
  52.         array('#};#', '#{;#'), 
  53.         array('}', '{'), 
  54.         $serialized
  55.     );
  56.  
  57.     return unserialize($serialized);
  58. }
  59.  
  60. var_export(unvar_dump('array(1) {
  61.   [0]=>
  62.   array(143) {
  63.     ["entity_id"]=>
  64.     string(2) "14"
  65.     ["state"]=>
  66.     string(3) "new"
  67.     ["status"]=>
  68.     string(7) "pending"
  69.     ["customer_id"]=>
  70.     string(1) "9"
  71.     ["customer_group_id"]=>
  72.     string(1) "1"
  73.     ["customer_is_guest"]=>
  74.     string(1) "0"
  75.     ["order_currency_code"]=>
  76.     string(3) "CZK"
  77.     ["shipping_method"]=>
  78.     string(25) "freeshipping_freeshipping"
  79.     ["is_virtual"]=>
  80.     string(1) "0"
  81.     ["store_id"]=>
  82.     string(1) "1"
  83.     ["base_discount_amount"]=>
  84.     string(6) "0.0000"
  85.     ["base_discount_canceled"]=>
  86.     string(0) ""
  87.     ["base_discount_invoiced"]=>
  88.     string(0) ""
  89.     ["base_discount_refunded"]=>
  90.     string(0) ""
  91.     ["base_grand_total"]=>
  92.     string(10) "27203.3000"
  93.     ["base_shipping_amount"]=>
  94.     string(6) "0.0000"
  95.     ["base_shipping_canceled"]=>
  96.     string(0) ""
  97.     ["base_shipping_invoiced"]=>
  98.     string(0) ""
  99.     ["base_shipping_refunded"]=>
  100.     string(0) ""
  101.     ["base_shipping_tax_amount"]=>
  102.     string(6) "0.0000"
  103.     ["base_shipping_tax_refunded"]=>
  104.     string(0) ""
  105.     ["base_subtotal"]=>
  106.     string(10) "22482.0700"
  107.     ["base_subtotal_canceled"]=>
  108.     string(0) ""
  109.     ["base_subtotal_invoiced"]=>
  110.     string(0) ""
  111.     ["base_subtotal_refunded"]=>
  112.     string(0) ""
  113.     ["base_tax_amount"]=>
  114.     string(9) "4721.2300"
  115.     ["base_tax_canceled"]=>
  116.     string(0) ""
  117.     ["base_tax_invoiced"]=>
  118.     string(0) ""
  119.     ["base_tax_refunded"]=>
  120.     string(0) ""
  121.     ["base_total_canceled"]=>
  122.     string(0) ""
  123.     ["base_total_invoiced"]=>
  124.     string(0) ""
  125.     ["base_total_invoiced_cost"]=>
  126.     string(0) ""
  127.     ["base_total_offline_refunded"]=>
  128.     string(0) ""
  129.     ["base_total_online_refunded"]=>
  130.     string(0) ""
  131.     ["base_total_paid"]=>
  132.     string(0) ""
  133.     ["base_total_refunded"]=>
  134.     string(0) ""
  135.     ["discount_amount"]=>
  136.     string(6) "0.0000"
  137.     ["discount_canceled"]=>
  138.     string(0) ""
  139.     ["discount_invoiced"]=>
  140.     string(0) ""
  141.     ["discount_refunded"]=>
  142.     string(0) ""
  143.     ["grand_total"]=>
  144.     string(10) "27203.3000"
  145.     ["shipping_amount"]=>
  146.     string(6) "0.0000"
  147.     ["shipping_canceled"]=>
  148.     string(0) ""
  149.     ["shipping_invoiced"]=>
  150.     string(0) ""
  151.     ["shipping_refunded"]=>
  152.     string(0) ""
  153.     ["shipping_tax_amount"]=>
  154.     string(6) "0.0000"
  155.     ["shipping_tax_refunded"]=>
  156.     string(0) ""
  157.     ["subtotal"]=>
  158.     string(10) "22482.0700"
  159.     ["subtotal_canceled"]=>
  160.     string(0) ""
  161.     ["subtotal_invoiced"]=>
  162.     string(0) ""
  163.     ["subtotal_refunded"]=>
  164.     string(0) ""
  165.     ["tax_amount"]=>
  166.     string(9) "4721.2300"
  167.     ["tax_canceled"]=>
  168.     string(0) ""
  169.     ["tax_invoiced"]=>
  170.     string(0) ""
  171.     ["tax_refunded"]=>
  172.     string(0) ""
  173.     ["total_canceled"]=>
  174.     string(0) ""
  175.     ["total_invoiced"]=>
  176.     string(0) ""
  177.     ["total_offline_refunded"]=>
  178.     string(0) ""
  179.     ["total_online_refunded"]=>
  180.     string(0) ""
  181.     ["total_paid"]=>
  182.     string(0) ""
  183.     ["adjustment_negative"]=>
  184.     string(0) ""
  185.     ["adjustment_positive"]=>
  186.     string(0) ""
  187.     ["base_adjustment_negative"]=>
  188.     string(0) ""
  189.     ["base_adjustment_positive"]=>
  190.     string(0) ""
  191.     ["base_shipping_discount_amount"]=>
  192.     string(6) "0.0000"
  193.     ["base_subtotal_incl_tax"]=>
  194.     string(10) "27203.3000"
  195.     ["base_total_due"]=>
  196.     string(10) "27203.3000"
  197.     ["payment_authorization_amount"]=>
  198.     string(0) ""
  199.     ["shipping_discount_amount"]=>
  200.     string(6) "0.0000"
  201.     ["subtotal_incl_tax"]=>
  202.     string(10) "27203.3000"
  203.     ["total_due"]=>
  204.     string(10) "27203.3000"
  205.     ["discount_tax_compensation_amount"]=>
  206.     string(6) "0.0000"
  207.     ["base_discount_tax_compensation_amount"]=>
  208.     string(6) "0.0000"
  209.     ["shipping_discount_tax_compensation_amount"]=>
  210.     string(6) "0.0000"
  211.     ["base_shipping_discount_tax_compensation_amnt"]=>
  212.     string(6) "0.0000"
  213.     ["discount_tax_compensation_invoiced"]=>
  214.     string(0) ""
  215.     ["base_discount_tax_compensation_invoiced"]=>
  216.     string(0) ""
  217.     ["discount_tax_compensation_refunded"]=>
  218.     string(0) ""
  219.     ["base_discount_tax_compensation_refunded"]=>
  220.     string(0) ""
  221.     ["shipping_incl_tax"]=>
  222.     string(6) "0.0000"
  223.     ["base_shipping_incl_tax"]=>
  224.     string(6) "0.0000"
  225.     ["coupon_code"]=>
  226.     string(0) ""
  227.     ["protect_code"]=>
  228.     string(32) "c724eb062bb200aeab6f18777808f5f9"
  229.     ["shipping_description"]=>
  230.     string(28) "Vyzvednutí ve stavebninách"
  231.     ["base_to_global_rate"]=>
  232.     string(6) "1.0000"
  233.     ["base_to_order_rate"]=>
  234.     string(6) "1.0000"
  235.     ["base_total_qty_ordered"]=>
  236.     string(0) ""
  237.     ["store_to_base_rate"]=>
  238.     string(6) "0.0000"
  239.     ["store_to_order_rate"]=>
  240.     string(6) "0.0000"
  241.     ["total_qty_ordered"]=>
  242.     string(8) "329.0000"
  243.     ["total_refunded"]=>
  244.     string(0) ""
  245.     ["can_ship_partially"]=>
  246.     string(0) ""
  247.     ["can_ship_partially_item"]=>
  248.     string(0) ""
  249.     ["customer_note_notify"]=>
  250.     string(1) "1"
  251.     ["billing_address_id"]=>
  252.     string(2) "27"
  253.     ["edit_increment"]=>
  254.     string(0) ""
  255.     ["email_sent"]=>
  256.     string(0) ""
  257.     ["send_email"]=>
  258.     string(0) ""
  259.     ["forced_shipment_with_invoice"]=>
  260.     string(0) ""
  261.     ["payment_auth_expiration"]=>
  262.     string(0) ""
  263.     ["quote_address_id"]=>
  264.     string(0) ""
  265.     ["quote_id"]=>
  266.     string(3) "317"
  267.     ["shipping_address_id"]=>
  268.     string(2) "26"
  269.     ["weight"]=>
  270.     string(9) "5092.1305"
  271.     ["customer_dob"]=>
  272.     string(0) ""
  273.     ["increment_id"]=>
  274.     string(9) "000000014"
  275.     ["applied_rule_ids"]=>
  276.     string(0) ""
  277.     ["base_currency_code"]=>
  278.     string(3) "CZK"
  279.     ["customer_email"]=>
  280.     string(26) "[email protected]"
  281.     ["customer_firstname"]=>
  282.     string(6) "Enrico"
  283.     ["customer_lastname"]=>
  284.     string(8) "Vojtěch"
  285.     ["customer_middlename"]=>
  286.     string(0) ""
  287.     ["customer_prefix"]=>
  288.     string(0) ""
  289.     ["customer_suffix"]=>
  290.     string(0) ""
  291.     ["customer_taxvat"]=>
  292.     string(0) ""
  293.     ["discount_description"]=>
  294.     string(0) ""
  295.     ["ext_customer_id"]=>
  296.     string(0) ""
  297.     ["ext_order_id"]=>
  298.     string(0) ""
  299.     ["global_currency_code"]=>
  300.     string(3) "CZK"
  301.     ["hold_before_state"]=>
  302.     string(0) ""
  303.     ["hold_before_status"]=>
  304.     string(0) ""
  305.     ["original_increment_id"]=>
  306.     string(0) ""
  307.     ["relation_child_id"]=>
  308.     string(0) ""
  309.     ["relation_child_real_id"]=>
  310.     string(0) ""
  311.     ["relation_parent_id"]=>
  312.     string(0) ""
  313.     ["relation_parent_real_id"]=>
  314.     string(0) ""
  315.     ["remote_ip"]=>
  316.     string(13) "81.92.155.113"
  317.     ["store_currency_code"]=>
  318.     string(3) "CZK"
  319.     ["store_name"]=>
  320.     string(47) "Main Website
  321. Hebel ecommerce
  322. Default Store View"
  323.     ["x_forwarded_for"]=>
  324.     string(0) ""
  325.     ["customer_note"]=>
  326.     string(0) ""
  327.     ["created_at"]=>
  328.     string(19) "2021-07-09 13:42:22"
  329.     ["updated_at"]=>
  330.     string(19) "2021-07-09 13:42:22"
  331.     ["total_item_count"]=>
  332.     string(1) "3"
  333.     ["customer_gender"]=>
  334.     string(0) ""
  335.     ["coupon_rule_name"]=>
  336.     string(0) ""
  337.     ["gift_message_id"]=>
  338.     string(0) ""
  339.     ["paypal_ipn_customer_notified"]=>
  340.     string(1) "0"
  341.     ["amasty_order_attribute"]=>
  342.     array(1) {
  343.       [0]=>
  344.       array(2) {
  345.         ["id_stavebniny"]=>
  346.         string(1) "1"
  347.         ["json_paleta"]=>
  348.         string(37) "[{"sku":"10014265","divider":"1/80"}]"
  349.       }
  350.     }
  351.     ["sales_order_item"]=>
  352.     array(3) {
  353.       [0]=>
  354.       array(81) {
  355.         ["item_id"]=>
  356.         string(2) "34"
  357.         ["order_id"]=>
  358.         string(2) "14"
  359.         ["sku"]=>
  360.         string(8) "10014265"
  361.         ["name"]=>
  362.         string(41) "Tvárnice Hebel P2-450   499x199x250"
  363.         ["product_id"]=>
  364.         string(4) "2059"
  365.         ["product_type"]=>
  366.         string(6) "simple"
  367.         ["store_id"]=>
  368.         string(1) "1"
  369.         ["parent_item_id"]=>
  370.         string(0) ""
  371.         ["qty_ordered"]=>
  372.         string(8) "321.0000"
  373.         ["price"]=>
  374.         string(7) "67.6700"
  375.         ["is_virtual"]=>
  376.         string(1) "0"
  377.         ["base_cost"]=>
  378.         string(0) ""
  379.         ["base_price"]=>
  380.         string(7) "67.6700"
  381.         ["original_price"]=>
  382.         string(7) "67.6700"
  383.         ["base_original_price"]=>
  384.         string(7) "67.6700"
  385.         ["tax_percent"]=>
  386.         string(7) "21.0000"
  387.         ["base_tax_amount"]=>
  388.         string(9) "4561.6300"
  389.         ["tax_invoiced"]=>
  390.         string(6) "0.0000"
  391.         ["base_tax_invoiced"]=>
  392.         string(6) "0.0000"
  393.         ["discount_amount"]=>
  394.         string(6) "0.0000"
  395.         ["base_discount_amount"]=>
  396.         string(6) "0.0000"
  397.         ["discount_invoiced"]=>
  398.         string(6) "0.0000"
  399.         ["base_discount_invoiced"]=>
  400.         string(6) "0.0000"
  401.         ["amount_refunded"]=>
  402.         string(6) "0.0000"
  403.         ["base_amount_refunded"]=>
  404.         string(6) "0.0000"
  405.         ["row_total"]=>
  406.         string(10) "21722.0700"
  407.         ["base_row_total"]=>
  408.         string(10) "21722.0700"
  409.         ["row_invoiced"]=>
  410.         string(6) "0.0000"
  411.         ["base_row_invoiced"]=>
  412.         string(6) "0.0000"
  413.         ["base_tax_before_discount"]=>
  414.         string(0) ""
  415.         ["tax_before_discount"]=>
  416.         string(0) ""
  417.         ["price_incl_tax"]=>
  418.         string(7) "81.8800"
  419.         ["base_price_incl_tax"]=>
  420.         string(7) "81.8800"
  421.         ["row_total_incl_tax"]=>
  422.         string(10) "26283.7000"
  423.         ["base_row_total_incl_tax"]=>
  424.         string(10) "26283.7000"
  425.         ["discount_tax_compensation_amount"]=>
  426.         string(6) "0.0000"
  427.         ["base_discount_tax_compensation_amount"]=>
  428.         string(6) "0.0000"
  429.         ["discount_tax_compensation_invoiced"]=>
  430.         string(0) ""
  431.         ["base_discount_tax_compensation_invoiced"]=>
  432.         string(0) ""
  433.         ["discount_tax_compensation_refunded"]=>
  434.         string(0) ""
  435.         ["base_discount_tax_compensation_refunded"]=>
  436.         string(0) ""
  437.         ["tax_canceled"]=>
  438.         string(0) ""
  439.         ["discount_tax_compensation_canceled"]=>
  440.         string(0) ""
  441.         ["tax_refunded"]=>
  442.         string(0) ""
  443.         ["base_tax_refunded"]=>
  444.         string(0) ""
  445.         ["discount_refunded"]=>
  446.         string(0) ""
  447.         ["base_discount_refunded"]=>
  448.         string(0) ""
  449.         ["weee_tax_applied_amount"]=>
  450.         string(0) ""
  451.         ["weee_tax_applied_row_amount"]=>
  452.         string(0) ""
  453.         ["weee_tax_disposition"]=>
  454.         string(0) ""
  455.         ["weee_tax_row_disposition"]=>
  456.         string(0) ""
  457.         ["base_weee_tax_applied_amount"]=>
  458.         string(0) ""
  459.         ["base_weee_tax_applied_row_amnt"]=>
  460.         string(0) ""
  461.         ["base_weee_tax_disposition"]=>
  462.         string(0) ""
  463.         ["base_weee_tax_row_disposition"]=>
  464.         string(0) ""
  465.         ["quote_item_id"]=>
  466.         string(3) "754"
  467.         ["created_at"]=>
  468.         string(19) "2021-07-09 13:42:22"
  469.         ["updated_at"]=>
  470.         string(19) "2021-07-09 13:42:22"
  471.         ["product_options"]=>
  472.         string(141) "{"info_buyRequest":{"product":"2059","selected_configurable_option":"","related_product":"","item":"2059","qty":"410","product_page":"true"}}"
  473.         ["weight"]=>
  474.         string(7) "15.8633"
  475.         ["description"]=>
  476.         string(0) ""
  477.         ["applied_rule_ids"]=>
  478.         string(0) ""
  479.         ["additional_data"]=>
  480.         string(0) ""
  481.         ["is_qty_decimal"]=>
  482.         string(1) "0"
  483.         ["no_discount"]=>
  484.         string(1) "0"
  485.         ["qty_backordered"]=>
  486.         string(0) ""
  487.         ["qty_canceled"]=>
  488.         string(6) "0.0000"
  489.         ["qty_invoiced"]=>
  490.         string(6) "0.0000"
  491.         ["qty_refunded"]=>
  492.         string(6) "0.0000"
  493.         ["qty_shipped"]=>
  494.         string(6) "0.0000"
  495.         ["tax_amount"]=>
  496.         string(9) "4561.6300"
  497.         ["discount_percent"]=>
  498.         string(6) "0.0000"
  499.         ["row_weight"]=>
  500.         string(9) "5092.1305"
  501.         ["ext_order_item_id"]=>
  502.         string(0) ""
  503.         ["locked_do_invoice"]=>
  504.         string(0) ""
  505.         ["locked_do_ship"]=>
  506.         string(0) ""
  507.         ["weee_tax_applied"]=>
  508.         string(0) ""
  509.         ["gift_message_id"]=>
  510.         string(0) ""
  511.         ["gift_message_available"]=>
  512.         string(1) "0"
  513.         ["free_shipping"]=>
  514.         string(1) "0"
  515.         ["sales_order_item_custom_option"]=>
  516.         array(0) {
  517.         }
  518.       }
  519.       [1]=>
  520.       array(81) {
  521.         ["item_id"]=>
  522.         string(2) "35"
  523.         ["order_id"]=>
  524.         string(2) "14"
  525.         ["sku"]=>
  526.         string(5) "11111"
  527.         ["name"]=>
  528.         string(22) "Manipulační poplatek"
  529.         ["product_id"]=>
  530.         string(4) "2063"
  531.         ["product_type"]=>
  532.         string(6) "simple"
  533.         ["store_id"]=>
  534.         string(1) "1"
  535.         ["parent_item_id"]=>
  536.         string(0) ""
  537.         ["qty_ordered"]=>
  538.         string(6) "4.0000"
  539.         ["price"]=>
  540.         string(7) "30.0000"
  541.         ["is_virtual"]=>
  542.         string(1) "0"
  543.         ["base_cost"]=>
  544.         string(0) ""
  545.         ["base_price"]=>
  546.         string(7) "30.0000"
  547.         ["original_price"]=>
  548.         string(7) "30.0000"
  549.         ["base_original_price"]=>
  550.         string(7) "30.0000"
  551.         ["tax_percent"]=>
  552.         string(7) "21.0000"
  553.         ["base_tax_amount"]=>
  554.         string(7) "25.2000"
  555.         ["tax_invoiced"]=>
  556.         string(6) "0.0000"
  557.         ["base_tax_invoiced"]=>
  558.         string(6) "0.0000"
  559.         ["discount_amount"]=>
  560.         string(6) "0.0000"
  561.         ["base_discount_amount"]=>
  562.         string(6) "0.0000"
  563.         ["discount_invoiced"]=>
  564.         string(6) "0.0000"
  565.         ["base_discount_invoiced"]=>
  566.         string(6) "0.0000"
  567.         ["amount_refunded"]=>
  568.         string(6) "0.0000"
  569.         ["base_amount_refunded"]=>
  570.         string(6) "0.0000"
  571.         ["row_total"]=>
  572.         string(8) "120.0000"
  573.         ["base_row_total"]=>
  574.         string(8) "120.0000"
  575.         ["row_invoiced"]=>
  576.         string(6) "0.0000"
  577.         ["base_row_invoiced"]=>
  578.         string(6) "0.0000"
  579.         ["base_tax_before_discount"]=>
  580.         string(0) ""
  581.         ["tax_before_discount"]=>
  582.         string(0) ""
  583.         ["price_incl_tax"]=>
  584.         string(7) "36.3000"
  585.         ["base_price_incl_tax"]=>
  586.         string(7) "36.3000"
  587.         ["row_total_incl_tax"]=>
  588.         string(8) "145.2000"
  589.         ["base_row_total_incl_tax"]=>
  590.         string(8) "145.2000"
  591.         ["discount_tax_compensation_amount"]=>
  592.         string(6) "0.0000"
  593.         ["base_discount_tax_compensation_amount"]=>
  594.         string(6) "0.0000"
  595.         ["discount_tax_compensation_invoiced"]=>
  596.         string(0) ""
  597.         ["base_discount_tax_compensation_invoiced"]=>
  598.         string(0) ""
  599.         ["discount_tax_compensation_refunded"]=>
  600.         string(0) ""
  601.         ["base_discount_tax_compensation_refunded"]=>
  602.         string(0) ""
  603.         ["tax_canceled"]=>
  604.         string(0) ""
  605.         ["discount_tax_compensation_canceled"]=>
  606.         string(0) ""
  607.         ["tax_refunded"]=>
  608.         string(0) ""
  609.         ["base_tax_refunded"]=>
  610.         string(0) ""
  611.         ["discount_refunded"]=>
  612.         string(0) ""
  613.         ["base_discount_refunded"]=>
  614.         string(0) ""
  615.         ["weee_tax_applied_amount"]=>
  616.         string(0) ""
  617.         ["weee_tax_applied_row_amount"]=>
  618.         string(0) ""
  619.         ["weee_tax_disposition"]=>
  620.         string(0) ""
  621.         ["weee_tax_row_disposition"]=>
  622.         string(0) ""
  623.         ["base_weee_tax_applied_amount"]=>
  624.         string(0) ""
  625.         ["base_weee_tax_applied_row_amnt"]=>
  626.         string(0) ""
  627.         ["base_weee_tax_disposition"]=>
  628.         string(0) ""
  629.         ["base_weee_tax_row_disposition"]=>
  630.         string(0) ""
  631.         ["quote_item_id"]=>
  632.         string(3) "755"
  633.         ["created_at"]=>
  634.         string(19) "2021-07-09 13:42:22"
  635.         ["updated_at"]=>
  636.         string(19) "2021-07-09 13:42:22"
  637.         ["product_options"]=>
  638.         string(48) "{"info_buyRequest":{"qty":"5","product":"2063"}}"
  639.         ["weight"]=>
  640.         string(0) ""
  641.         ["description"]=>
  642.         string(0) ""
  643.         ["applied_rule_ids"]=>
  644.         string(0) ""
  645.         ["additional_data"]=>
  646.         string(0) ""
  647.         ["is_qty_decimal"]=>
  648.         string(1) "0"
  649.         ["no_discount"]=>
  650.         string(1) "0"
  651.         ["qty_backordered"]=>
  652.         string(0) ""
  653.         ["qty_canceled"]=>
  654.         string(6) "0.0000"
  655.         ["qty_invoiced"]=>
  656.         string(6) "0.0000"
  657.         ["qty_refunded"]=>
  658.         string(6) "0.0000"
  659.         ["qty_shipped"]=>
  660.         string(6) "0.0000"
  661.         ["tax_amount"]=>
  662.         string(7) "25.2000"
  663.         ["discount_percent"]=>
  664.         string(6) "0.0000"
  665.         ["row_weight"]=>
  666.         string(6) "0.0000"
  667.         ["ext_order_item_id"]=>
  668.         string(0) ""
  669.         ["locked_do_invoice"]=>
  670.         string(0) ""
  671.         ["locked_do_ship"]=>
  672.         string(0) ""
  673.         ["weee_tax_applied"]=>
  674.         string(0) ""
  675.         ["gift_message_id"]=>
  676.         string(0) ""
  677.         ["gift_message_available"]=>
  678.         string(1) "0"
  679.         ["free_shipping"]=>
  680.         string(1) "0"
  681.         ["sales_order_item_custom_option"]=>
  682.         array(0) {
  683.         }
  684.       }
  685.       [2]=>
  686.       array(81) {
  687.         ["item_id"]=>
  688.         string(2) "36"
  689.         ["order_id"]=>
  690.         string(2) "14"
  691.         ["sku"]=>
  692.         string(5) "22222"
  693.         ["name"]=>
  694.         string(12) "Paleta Hebel"
  695.         ["product_id"]=>
  696.         string(4) "2064"
  697.         ["product_type"]=>
  698.         string(6) "simple"
  699.         ["store_id"]=>
  700.         string(1) "1"
  701.         ["parent_item_id"]=>
  702.         string(0) ""
  703.         ["qty_ordered"]=>
  704.         string(6) "4.0000"
  705.         ["price"]=>
  706.         string(8) "160.0000"
  707.         ["is_virtual"]=>
  708.         string(1) "0"
  709.         ["base_cost"]=>
  710.         string(0) ""
  711.         ["base_price"]=>
  712.         string(8) "160.0000"
  713.         ["original_price"]=>
  714.         string(8) "160.0000"
  715.         ["base_original_price"]=>
  716.         string(8) "160.0000"
  717.         ["tax_percent"]=>
  718.         string(7) "21.0000"
  719.         ["base_tax_amount"]=>
  720.         string(8) "134.4000"
  721.         ["tax_invoiced"]=>
  722.         string(6) "0.0000"
  723.         ["base_tax_invoiced"]=>
  724.         string(6) "0.0000"
  725.         ["discount_amount"]=>
  726.         string(6) "0.0000"
  727.         ["base_discount_amount"]=>
  728.         string(6) "0.0000"
  729.         ["discount_invoiced"]=>
  730.         string(6) "0.0000"
  731.         ["base_discount_invoiced"]=>
  732.         string(6) "0.0000"
  733.         ["amount_refunded"]=>
  734.         string(6) "0.0000"
  735.         ["base_amount_refunded"]=>
  736.         string(6) "0.0000"
  737.         ["row_total"]=>
  738.         string(8) "640.0000"
  739.         ["base_row_total"]=>
  740.         string(8) "640.0000"
  741.         ["row_invoiced"]=>
  742.         string(6) "0.0000"
  743.         ["base_row_invoiced"]=>
  744.         string(6) "0.0000"
  745.         ["base_tax_before_discount"]=>
  746.         string(0) ""
  747.         ["tax_before_discount"]=>
  748.         string(0) ""
  749.         ["price_incl_tax"]=>
  750.         string(8) "193.6000"
  751.         ["base_price_incl_tax"]=>
  752.         string(8) "193.6000"
  753.         ["row_total_incl_tax"]=>
  754.         string(8) "774.4000"
  755.         ["base_row_total_incl_tax"]=>
  756.         string(8) "774.4000"
  757.         ["discount_tax_compensation_amount"]=>
  758.         string(6) "0.0000"
  759.         ["base_discount_tax_compensation_amount"]=>
  760.         string(6) "0.0000"
  761.         ["discount_tax_compensation_invoiced"]=>
  762.         string(0) ""
  763.         ["base_discount_tax_compensation_invoiced"]=>
  764.         string(0) ""
  765.         ["discount_tax_compensation_refunded"]=>
  766.         string(0) ""
  767.         ["base_discount_tax_compensation_refunded"]=>
  768.         string(0) ""
  769.         ["tax_canceled"]=>
  770.         string(0) ""
  771.         ["discount_tax_compensation_canceled"]=>
  772.         string(0) ""
  773.         ["tax_refunded"]=>
  774.         string(0) ""
  775.         ["base_tax_refunded"]=>
  776.         string(0) ""
  777.         ["discount_refunded"]=>
  778.         string(0) ""
  779.         ["base_discount_refunded"]=>
  780.         string(0) ""
  781.         ["weee_tax_applied_amount"]=>
  782.         string(0) ""
  783.         ["weee_tax_applied_row_amount"]=>
  784.         string(0) ""
  785.         ["weee_tax_disposition"]=>
  786.         string(0) ""
  787.         ["weee_tax_row_disposition"]=>
  788.         string(0) ""
  789.         ["base_weee_tax_applied_amount"]=>
  790.         string(0) ""
  791.         ["base_weee_tax_applied_row_amnt"]=>
  792.         string(0) ""
  793.         ["base_weee_tax_disposition"]=>
  794.         string(0) ""
  795.         ["base_weee_tax_row_disposition"]=>
  796.         string(0) ""
  797.         ["quote_item_id"]=>
  798.         string(3) "756"
  799.         ["created_at"]=>
  800.         string(19) "2021-07-09 13:42:22"
  801.         ["updated_at"]=>
  802.         string(19) "2021-07-09 13:42:22"
  803.         ["product_options"]=>
  804.         string(48) "{"info_buyRequest":{"qty":"5","product":"2064"}}"
  805.         ["weight"]=>
  806.         string(0) ""
  807.         ["description"]=>
  808.         string(0) ""
  809.         ["applied_rule_ids"]=>
  810.         string(0) ""
  811.         ["additional_data"]=>
  812.         string(0) ""
  813.         ["is_qty_decimal"]=>
  814.         string(1) "0"
  815.         ["no_discount"]=>
  816.         string(1) "0"
  817.         ["qty_backordered"]=>
  818.         string(0) ""
  819.         ["qty_canceled"]=>
  820.         string(6) "0.0000"
  821.         ["qty_invoiced"]=>
  822.         string(6) "0.0000"
  823.         ["qty_refunded"]=>
  824.         string(6) "0.0000"
  825.         ["qty_shipped"]=>
  826.         string(6) "0.0000"
  827.         ["tax_amount"]=>
  828.         string(8) "134.4000"
  829.         ["discount_percent"]=>
  830.         string(6) "0.0000"
  831.         ["row_weight"]=>
  832.         string(6) "0.0000"
  833.         ["ext_order_item_id"]=>
  834.         string(0) ""
  835.         ["locked_do_invoice"]=>
  836.         string(0) ""
  837.         ["locked_do_ship"]=>
  838.         string(0) ""
  839.         ["weee_tax_applied"]=>
  840.         string(0) ""
  841.         ["gift_message_id"]=>
  842.         string(0) ""
  843.         ["gift_message_available"]=>
  844.         string(1) "0"
  845.         ["free_shipping"]=>
  846.         string(1) "0"
  847.         ["sales_order_item_custom_option"]=>
  848.         array(0) {
  849.         }
  850.       }
  851.     }
  852.     ["sales_order_grid"]=>
  853.     array(1) {
  854.       [0]=>
  855.       array(0) {
  856.       }
  857.     }
  858.     ["sales_order_shipping_address"]=>
  859.     array(1) {
  860.       [0]=>
  861.       array(27) {
  862.         ["entity_id"]=>
  863.         string(2) "26"
  864.         ["parent_id"]=>
  865.         string(2) "14"
  866.         ["customer_address_id"]=>
  867.         string(1) "3"
  868.         ["quote_address_id"]=>
  869.         string(3) "751"
  870.         ["region_id"]=>
  871.         string(0) ""
  872.         ["customer_id"]=>
  873.         string(0) ""
  874.         ["fax"]=>
  875.         string(0) ""
  876.         ["region"]=>
  877.         string(0) ""
  878.         ["postcode"]=>
  879.         string(6) "537 01"
  880.         ["lastname"]=>
  881.         string(8) "Vojtěch"
  882.         ["street"]=>
  883.         string(4) "TEST"
  884.         ["city"]=>
  885.         string(7) "Chrudim"
  886.         ["email"]=>
  887.         string(26) "[email protected]"
  888.         ["telephone"]=>
  889.         string(9) "123456789"
  890.         ["country_id"]=>
  891.         string(2) "CZ"
  892.         ["firstname"]=>
  893.         string(6) "Enrico"
  894.         ["address_type"]=>
  895.         string(8) "shipping"
  896.         ["prefix"]=>
  897.         string(0) ""
  898.         ["middlename"]=>
  899.         string(0) ""
  900.         ["suffix"]=>
  901.         string(0) ""
  902.         ["company"]=>
  903.         string(4) "TEST"
  904.         ["vat_id"]=>
  905.         string(0) ""
  906.         ["vat_is_valid"]=>
  907.         string(0) ""
  908.         ["vat_request_id"]=>
  909.         string(0) ""
  910.         ["vat_request_date"]=>
  911.         string(0) ""
  912.         ["vat_request_success"]=>
  913.         string(0) ""
  914.         ["vertex_vat_country_code"]=>
  915.         string(0) ""
  916.       }
  917.     }
  918.     ["sales_order_billing_address"]=>
  919.     array(1) {
  920.       [0]=>
  921.       array(27) {
  922.         ["entity_id"]=>
  923.         string(2) "27"
  924.         ["parent_id"]=>
  925.         string(2) "14"
  926.         ["customer_address_id"]=>
  927.         string(0) ""
  928.         ["quote_address_id"]=>
  929.         string(3) "758"
  930.         ["region_id"]=>
  931.         string(0) ""
  932.         ["customer_id"]=>
  933.         string(0) ""
  934.         ["fax"]=>
  935.         string(0) ""
  936.         ["region"]=>
  937.         string(0) ""
  938.         ["postcode"]=>
  939.         string(6) "537 01"
  940.         ["lastname"]=>
  941.         string(8) "Vojtěch"
  942.         ["street"]=>
  943.         string(4) "TEST"
  944.         ["city"]=>
  945.         string(7) "Chrudim"
  946.         ["email"]=>
  947.         string(26) "[email protected]"
  948.         ["telephone"]=>
  949.         string(9) "123456789"
  950.         ["country_id"]=>
  951.         string(2) "CZ"
  952.         ["firstname"]=>
  953.         string(6) "Enrico"
  954.         ["address_type"]=>
  955.         string(7) "billing"
  956.         ["prefix"]=>
  957.         string(0) ""
  958.         ["middlename"]=>
  959.         string(0) ""
  960.         ["suffix"]=>
  961.         string(0) ""
  962.         ["company"]=>
  963.         string(4) "TEST"
  964.         ["vat_id"]=>
  965.         string(0) ""
  966.         ["vat_is_valid"]=>
  967.         string(0) ""
  968.         ["vat_request_id"]=>
  969.         string(0) ""
  970.         ["vat_request_date"]=>
  971.         string(0) ""
  972.         ["vat_request_success"]=>
  973.         string(0) ""
  974.         ["vertex_vat_country_code"]=>
  975.         string(0) ""
  976.       }
  977.     }
  978.   }
  979. }'));
File Description
  • reverse var_dump
  • PHP Code
  • 13 Jul-2021
  • 25.27 Kb
You can Share it: