hassan Posted August 6, 2015 Share Posted August 6, 2015 Hi on page 65 it mentions hows strings can be converted to arrays and arrays into strings. When would one use that in a real world programming situation? Thanks in advance :-) Link to comment Share on other sites More sharing options...
Larry Posted August 7, 2015 Share Posted August 7, 2015 If I recall correctly, the book has an example that's rather practical. It's more convenient to have users enter lots of values as strings, and then you can easily convert them to arrays, which are more usable. Another example would be reading in a file as one long string, and then breaking the file on newlines/returns to create an array. Link to comment Share on other sites More sharing options...
hassan Posted August 7, 2015 Author Share Posted August 7, 2015 Ok so for example I could read a CSV file and put that in an array and may then later store that array into a database? Link to comment Share on other sites More sharing options...
Larry Posted August 8, 2015 Share Posted August 8, 2015 Yes. Link to comment Share on other sites More sharing options...
hassan Posted August 20, 2015 Author Share Posted August 20, 2015 Thanks :-) Link to comment Share on other sites More sharing options...
Recommended Posts