![]() |
Scripting: obj.getstringkeys(str)
PHP Code:
|
if you need that functionality you can use my associative array: http://forums.graalonline.com/forums...ad.php?t=68643
|
Quote:
Which function? |
It's a class for an associative array data structure. All it does really is map two arrays to each other.
{key1, key2} {value1, value2} all array.item(key1) does is find the index of key1 (in this case zero) and return the value at the same index (value1). I provided functionality for looping through which is in the example usage. |
I don't see how this helps me :(
I want to do something like: PHP Code:
HTML Code:
1If your class can do that, please give me an example? :D |
.pos()?
|
Quote:
|
Good point, though I guess you can do something like:
PHP Code:
|
oh, i see. Nevermind, i thought you meant something else.
You could do something like: PHP Code:
|
Use Dustys version!
HTML Code:
for (temp.currentArray: array) |
Yeah, but then to echo 1,2,3 you have to create a counter anyway or then do array.index(temp.currentarray);
|
Quote:
HTML Code:
for (temp.currentArray: array) |
You edited your post :) PHP Code:
|
Yeah :p
I forgot, I was trying to trim the selected text, not find the position! I wouldn't mind it being added! |
Quote:
|
But getstringkeys is for getting subvariables or variables that start with the parameter...it isn't meant for arrays at all!
|
getStringKeys() hasn't been GS2ified, doesn't work with Object references.
PHP Code:
|
| All times are GMT +2. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.