[Script] Numerele cuprinse intre un numar x si altul y

Locked
User avatar
! Manticore ♛
Membru
Membru
Posts: 1542
Joined: 8 years ago
Location: New York , SUA
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 27
Status: Offline

7 years ago

Numerele cuprinse intre un numar x si altul y

Code: Select all

for ($i = 1; $i <= 100 $i++):
echo $i;
endfor; 
De folos pentru formulare de inregistrare.

Exemplu:

Code: Select all

echo '<select>';
for ($i = 1970; $i <= date("Y"); $i++):
echo '<option>'.$i.'</option>';
endfor;
echo '</select>'; 
Image Image

Image

© ! Manticore ♛

"Many things that seems threatening in the dark,become more welcoming when we shine a light on them."
"Maybe for the world you are just a person,but for a person you are the entire world."
"Nothing is impossible,the word itself says <<I'm Possible>>."
"If the pain will ever speak,then my pain will scream."
''The fastest way to happiness is to avoid the reality."

Image
Locked

Return to “Script-uri”