![]() |
Puzzling Echo Issue
EDIT: Sorta figured it out.
PHP Code:
The problem I was running into in my script was really bizarre. It seemed as though I couldn't echo just basic text information anymore after a certain amount of similar echoes (the number being 10). Note in this script how the alternating __________'s are repeated 17 times, with the word TESTING in front. What you get is the word "TESTING" followed by 9 ________'s, with the other 8 omitted. If you delete TESTING you get 10 _________'s with only 7 omitted. What I assumed to be the case was that you could only have up to 10 same-type echoes (10 strings, 10 ints, etc). But that doesn't seem to be the case (note how it echoes up to 10 no problem). Additionally, echo seems to work as many times as you want when dealing with variables (which is what was so confusing in my script -- SOME echoes that were printing SOME variables were working, while other echoes which were printing OTHER variables or no variables weren't!) If anyone cares to find the rhyme or reason to this (or already knows it) please let me know. I'd be very interested. |
Try strings instead of just numbers. Just a guess, my GS2 knowledge is a bit rusty..
|
Quote:
|
nah you need to throw quotes around the numbers
|
Quote:
PHP Code:
PHP Code:
|
also o is not 0
|
Rob, please stick to finger painting.
|
This has been happening for as long as I can remember (basically since v5 was released). I never figured out exactly what was causing it or how to avoid it. At least in my experience, it has nothing to do with strings/integers.
|
| All times are GMT +2. The time now is 06:57 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.