add substrings to an array
hi folks,
i have a string of numbers which i want seperated so that every figure has its own place in an array. i tried it this way, but i couldn't get it working: Quote:
anyway the error i get is: Quote:
thanks in advance! greetings joh |
use the tokenize command:
string $buffer[]; string $myNumbs = "1 2 3 4 5 6 7 8 9 10"; tokenize $myNumbs " " $buffer; for($numb in $buffer) { print("numb: -->" + $numb +"<--\n"); } :ninja: A |
All times are GMT. The time now is 05:22 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018