Skip to content

Instantly share code, notes, and snippets.

@danilowm
Created July 18, 2012 18:49
Show Gist options
  • Save danilowm/3138025 to your computer and use it in GitHub Desktop.
Save danilowm/3138025 to your computer and use it in GitHub Desktop.
substr() do PHP no Javascript
var str = 'Hello world!';
var return = str.substr(2,3);
// Retorno será: llo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment