View Single Post
  #2  
Old 11-03-2010, 04:58 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
When I'm working with arrays and manipulating them I like to use obj.link(), basically removes the need to use a return.

PHP Code:
function onCreated() {
  
// Example Array
  
temp.arr "9 8 7 6 5 4 3 2 1".tokenize();
  
// Sort
  
bubbleSort(temp.arr.link());
  
// Array Sorted
  
echo(temp.arr);

__________________
Quote:
Reply With Quote