Closed Thread Icon

Topic awaiting preservation: Change array value (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7871" title="Pages that link to Topic awaiting preservation: Change array value (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Change array value <span class="small">(Page 1 of 1)</span>\

 
Osaires
Paranoid (IV) Inmate

From: oslo, Norway
Insane since: Aug 2001

posted posted 10-05-2001 18:34

is it posible to change a array's value?


bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-05-2001 19:00

Um an array element?

sure just set it to what you want.

myarray[3] = "whatever";

you can also use any of the built in methods for more complicated manipulation




:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 10-07-2001 08:09

If you mean literally change the array itself, you just say myarray="hi now i'm a string"; or something.

« BackwardsOnwards »

Show Forum Drop Down Menu