Skip to content

Eric Holmes

My WordPress Playground

  • Info
  • Contact

Featured Posts

  • Redirecting domains to a WordPress Multisite
  • Custom Post Type date archive links in WordPress
  • Using WordPress core externally

Categories

  • Past Work (3)
    • Flash (1)
    • Web (3)
  • Tutorials (30)
    • ActionScript 3 (2)
    • JavaScript (3)
    • jQuery (1)
    • MySQL (1)
    • PHP (10)
    • SSH (5)
    • WordPress (9)

Tag: development

print_r for JavaScript

I was creating a JavaScript flash script early last week, and needed a way to make sure an array was populated correctly. I stumbled across this script on OpenJS, which acts exactly like PHP’s print_r function.

Usage

{code type=js}
dump( my_array );
{/code}

Code

Check out the source code here.
Continue reading print_r for JavaScript

Posted on January 24, 2013February 6, 2013Categories JavaScriptTags debug, development, JavaScript, print_r
Proudly powered by WordPress