6

Having fun looking at android developer struggling to replicate 'str_split()' function from PHP in Java :-D

Comments
  • 0
    Uau he must be pretty bad... Java function is simply split()
  • 0
    @maximizer It's not that simple actually. str_split splits a string into equal length parts. Java's split is more like PHP's explode. You can thank PHP for it's amazing function naming "convention" :D

    However, Java's split function does take a regular expression, so it's technically possible :P
  • 0
    PHP str_split() is more like Java .toCharArray(). Same result is achieved with .split("").
Add Comment