Jump to content

Problem Splitting Array on new lines?


Rifts

Recommended Posts

Hey guys,

 

I'm trying to take my array and split it onto different lines, the tricky part is the number of items will change.

 

here is what I have so far:

 

var addnext = name;
	allquotes = new Array();
	allquotes.push(localStorage.quotes+"|||"+addnext);
	localStorage.quotes = allquotes;

then to get the array

showage = localStorage.quotes;
mysplit = showage.split("|||");

 

when I print out showage it shows the array like it should  value1|||value2|||value3

 

if i display the mysplit nothing happens.

 

thanks

 

Link to comment
https://forums.phpfreaks.com/topic/223932-problem-splitting-array-on-new-lines/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.