Sunday, May 12, 2024

PHP var_dump beautifier


Cut n' paste var_dump() below





Simple replacements based on following rules:

  input = input.replaceAll('{ [', '{<br>[');
  input = input.replaceAll('" ["', '"<br>["');
  input = input.replaceAll('NULL [', 'NULL <br>[');
  input = input.replaceAll('} ["', '}<br>["');
  input = input.replaceAll('} }', '}<br>}');
  input = input.replaceAll(') [', ')<br>[');





No comments:

Post a Comment