A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Waterfall_Cache has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 47

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Cache_System has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 194

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Memcache_Cache_System has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 275

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Filesystem_Cache_System has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 440

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; APC_Cache_System has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 628

Utilizing The Split Function Page 2

Utilizing The Split Function Page 2


Download the authoritative guide: Data Center Guide: Optimizing Your Data Center Strategy

Download the authoritative guide: Cloud Computing: Using the Cloud for Competitive Advantage

Watkins

corner.jpg (739 bytes) Utilizing The Split Function corner2.jpg (786 bytes)

Back to the article: click here

Here is an example of how the script works. Enter a several stock quotes below seperated by commas and then submit it. For example: "pep, tgo, yum, dg" would be a correct example, but "pep tgo yum dg" would not. In a follow up to this article, I will be showing you how to let users enter the information almost anyway they want and still let it come out correct on the backend.


You entered the following:
<% Dim strStockQuotes Dim araStockQuotes Dim intElements Dim i Dim strStockQuote strStockQuotes = request("stockquotes") ' This is the input from the form. if len(strStockQuotes) > 255 then response.write "Your string was too big. This limitation is only here for the purpose of server performance. This is not the limitation of the split function, infact, I do know the limitation. Heck, maybe there isn't. :)" elseif len(strStockQuotes) = 0 or isNull(strStockQuotes) then response.write "" else araStockQuotes = split(strStockQuotes, ",") intElements = ubound(araStockQuotes) ' Get the number of elements. response.write "

" For i = 0 to intElements strStockQuote = araStockQuotes(i) response.write strStockQuote & "
" Next response.write "
" end if %>

This article was originally published on Aug 10, 1999
Page 2 of 2

Thanks for your registration, follow us on our social networks to keep up-to-date