![]() |
Help PHP QUESTION!
My code:
<?php $xi = "x"; for ($i = 1; $i < 400; ++$i) { echo ("$xi.$i"); ?> I know its wrong.. but how do I go about if I want to: echo $x1 to $x400 :321GFY |
/* example 1 */
for ($i = 1; $i <= 10; $i++) { print $i; } /* example 2 */ for ($i = 1;;$i++) { if ($i > 10) { break; } print $i; } /* example 3 */ $i = 1; for (;;) { if ($i > 10) { break; } print $i; $i++; } /* example 4 */ for ($i = 1; $i <= 10; print $i, $i++); |
for ($i=1;$i<401;$i++) {eval("echo \$x$i;");}
|
very close, but is not printing out anything if I do this for example...
www.mydomain.com/thescript.php?x330=hello or www.mydomain.com/thescript.php?x330=hello&x331=bye&x400=cya see where im heading? :helpme |
nevermind, it works :thumbsup
now just need to figure out how to add " " and ", " after each $x :) |
can you give and example input/output ?
|
sure
Input:Equinox Output:Gay is this valid output? :evil-laug |
PHP Code:
|
well output?
ok, hello, hi, fuck you!, welcome back, number of posts, etc. |
All times are GMT -7. The time now is 08:06 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123