Thread: array issues
View Single Post
  #2  
Old 11-03-2010, 12:42 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Try this:

PHP Code:
function onCreated() {
  
temp.arr = {
    
012345
  
};
  
temp.arr.insert(32.5); // Inserts 2.5 in arr[3]
  
temp.arr.remove(5); // Removes an instance of 5 from array
  
temp.arr.delete(0); // Deletes arr[0] from array
  
temp.arr.replace(1"1.lolz"); // Replaces arr[1] with "1.lolz"
  
echo(temp.arr); // echos "1,1.lolz,2.5,3,4"

I told you this before in the beta thread, you should post your usage of the functions with your reports.
__________________
Quote:
Reply With Quote