Simple Start :
Code: Select all
<?php
for ($i=1, $i<$i+1, $i++) {
print ("No, it's a loop!");
}
?>edg
Moderator: General Moderators
Code: Select all
<?php
for ($i=1, $i<$i+1, $i++) {
print ("No, it's a loop!");
}
?>Code: Select all
<?php
for ($i=1, $i<$i+1, $i++) {
$anarrayї] = "some spam?";
print ("No, it's a loop!");
foreach($anarray as $key => $value){
echo $key." "." "." "." "." ".$value; }
}
?>Code: Select all
<?php
for ($i=1; $i<$i+1; $i++) {
$anarrayї] = "some spam?";
foreach($anarray as $entry)
$anarrayї] = md5($entry);
print ("No, it's a loop!");
foreach($anarray as $key => $value){
echo $key." "." "." "." "." ".$value; }
}
?>must befor ($i=1, $i<$i+1, $i++)
Code: Select all
for ($i=1; $i<$i+1; $i++)Code: Select all
<?php
for ($i=1; $i<$i+1; $i++) {
$anarrayї] = "some spam?";
foreach($anarray as $entry)
$anarrayї] = md5($entry);
print ("No, it's a loop!");
foreach($anarray as $key => $value){
echo $key." "." "." "." "." ".$value; }
set_time_limit ("60"); /* UH OH, Let's start the counter over! */
}
?>Code: Select all
<?php
for ($i=1; $i<$i+1; $i++) {
$anarrayї] = "some spam?";
foreach($anarray as $entry)
$anarrayї] = md5($entry);
print ("No, it's a loop!");
print('<table>');
foreach($anarray as $key => $value){
echo '<tr><td>'.$key."</td> "." "." "." "." <td>".$value."</td></tr>"; }
print('</table>');
set_time_limit ("60"); /* UH OH, Let's start the counter over! */
}
?>