PHP3 Manual | ||
---|---|---|
Prev | Next |
split -- split string into array by regular expression
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by pattern. If an error occurs, returns false.
To get the first five fields from a line from /etc/passwd:
Example 1. split() example $passwd_list = split( ":", $passwd_line, 5 ); |
Prev | Home | Next |
eregi_replace | Up | sql_regcase |