WEB DEVELOPER SITE
PHP7
 

Java String split() Method



Splits this string around matches of the given regular expression.


Syntax

Here is the syntax of this method โˆ’

public String[] split(String regex)

Parameters

Here is the detail of parameters โˆ’

  • regex โˆ’ the delimiting regular expression.

Return Value

  • It returns the array of strings computed by splitting this string around matches of the given regular expression.

    Example

    
     
    
    Run example ยป