Skip to content

Instantly share code, notes, and snippets.

@danilowm
Created March 8, 2012 01:59
Show Gist options
  • Select an option

  • Save danilowm/1998009 to your computer and use it in GitHub Desktop.

Select an option

Save danilowm/1998009 to your computer and use it in GitHub Desktop.
print_r() do PHP no Javascript
window.onload = function() {
var array = new Array('Teste 1', 'Teste 2', 'Teste 3',[['Teste 4', 'Teste 5'],['Teste 6','Teste 7',['Teste 8','Teste 9']]])
document.write( '<pre>' + print_r( array ) + '</pre>' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment