What is split?

Questions by Subhashini6317   answers by Subhashini6317

Showing Answers 1 - 6 of 6 Answers

sudhakar2068

  • Sep 19th, 2006
 

split -- Split string into array by regular expression.

Example 1. split() example.


list($user, $pass, $uid, $gid, $extra
) =
  
split(":", $passwd_line, 5);

If there are n occurrences of pattern, the returned array will contain n+1 items. For example, if there is no occurrence of pattern, an array with only one element will be returned. Of course, this is also true if string is empty.

To parse a date which may be delimited with slashes, dots, or hyphens:

 sudhakar kolla.

My Email:kollasudhakar2005@yahoo.co.in.

My Number:09819859346.

  Was this answer useful?  Yes

hi..

split is function in TSL which is used to break an array or string in small ones.Just go through TSL online refrence and check 'split' function there.

e.g suppose i want to print "wat is split" into three lines then i can use split function to break this and print three words in three lines.

hope u got ur answer.otherwise u can reach me at chintukiit@gmail.com

  Was this answer useful?  Yes

mprashanthi

  • Feb 20th, 2007
 

It is used to split the specified string into set of elements as per the delimeter provided and stores them in an array.

split(string,array var,delimeter);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions