json decoding - 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 json decoding.php

  1. <?php
  2.  
  3.  
  4. $json = ' string(532) "a:14:{s:18:"gerato_tax_posting";s:0:"";s:11:"slider_type";s:2:"no";s:20:"gerato_tax_woolslide";s:1:"0";s:24:"gerato_tax_supermaticger";s:1:"0";s:15:"slider_position";s:7:"default";s:16:"main_padding_top";s:0:"";s:19:"main_padding_bottom";s:0:"";s:15:"header_bg_color";s:0:"";s:22:"mobile_header_bg_color";s:0:"";s:14:"page_title_bar";s:7:"default";s:13:"page_title_bg";s:48:"/kaligulato/uploady/2019/10/1235sdw568qwe451.jpg";s:20:"page_title_bg_retina";s:0:"";s:17:"page_title_height";s:0:"";s:24:"page_title_mobile_height";s:0:"";}"';
  5. $decod = json_decode($json);
  6.  
  7. var_dump($decod);
File Description
  • json decoding
  • PHP Code
  • 31 Oct-2019
  • 614 Bytes
You can Share it:
Related Tools