Whether I want slice or substring and if substr matters
slice
substring
substr
Which always ends with me using substring
Alternatively, I actually can keep straight slice and splice for arrays. It's the string functions that mess me up
splice
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Whether I want
slice
orsubstring
and ifsubstr
mattersWhich always ends with me using
substring
Alternatively, I actually can keep straight
slice
andsplice
for arrays. It's the string functions that mess me up