Number to String
A month ago i quit scripting. But now i am back! XD. Still learning... Now i am making a cool plugin. Just need some help. I know this is kinda a newbie question. But i can't figure out this:
ok i made: PHP Code:
PHP Code:
if: number1 = 1 number2 = 2 number3 = 3 ... so the string would to be: 12345 I hope you got the idea XD I tried converting/making/transforming those numbers to string and then tried putting into the my_new_string... and other methods... nothing... Maybe someone could make a code? I was searching the forums for tutorials, examples, other plugins... But i couldn't find anything. I know i am a bad searcher... XD. I'm stuck with this for 1h now...It shouldn't be a long script, so maybe someone could help me out? Thanks. |
Re: Number to String
Declaration:
Code:
Fill array with random values: Code:
Make the numbers together: Code:
|
Re: Number to String
Thanks.
But i will need those 5 numbers later as variables. I'm really a newbie in Strings - never have really worked with them(just a bit). How to i get those 5 numbers out of Number - and move them to other variables? like - number[5] - 12345 number1 - 1 number2 - 2 ... Thanks. Sorry for my english. I'm not really good at it =/ |
Re: Number to String
I'm not sure to understand very well... Sorry.
Please rephrase. |
Re: Number to String
Ok, i will need number1, number2, number3, number4, number5 later.
So i don't need that number[5] - i need to get those 5 numbers who are in number[5] to number1, number2... so: if number[5] = 12345 then: number1 = 1 number2 = 2 number3 = 3 number4 = 4 number5 = 5 |
Re: Number to String
If you do this:
Quote:
|
| All times are GMT -4. The time now is 11:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.