Created
July 18, 2012 18:49
-
-
Save danilowm/3138025 to your computer and use it in GitHub Desktop.
substr() do PHP no Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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