登录 | 注册 | FAQ
Anonymous

PHP-Lesson 5: Loops, $x=0<=50>

+ 发表回复

3 篇帖子 分页: 1 / 1


PHP-Lesson 5: Loops, $x=0<=50>

Jesmion » 周四 10月 09, 2014 11:13 pm

Hi, i happen to study php, lesson 5, about Loops, i have been able to discover reasons loops could work in various way, i know php by my studies, that php is: personal-home-page, that could be acclimatized, it looks as if loops would have more advantages a php than other structures, it seems as example: $x=0<=50></p></title> Loops<title>
头像

Jesmion

  • 帖子: 91
  • 注册: 周日 9月 14, 2014 8:07 pm
  • 地址: Uruagu Umudioka

Re: PHP-Lesson 5: Loops, $x=0<=50>

XainPro » 周五 10月 10, 2014 11:05 am

do not reinvent the programming try to learn it :)

<html>
<head>

<title>Loops</title>
</head>
<body>

<?php

for ($x=0; $x<=50; $x=$x+5) {
echo '<p>variable $x is now = ' . $x . '</p>';
}
?>

</body>
</html>
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: PHP-Lesson 5: Loops, $x=0<=50>

Jesmion » 周五 10月 10, 2014 1:44 pm

Hi Xainpro, thanks for advising me about the programming, well, i was of intention for clarification, and not reinvention, but, your good teaching has corrected my lapses, thanks for teaching more, am Jesmion
头像

Jesmion

  • 帖子: 91
  • 注册: 周日 9月 14, 2014 8:07 pm
  • 地址: Uruagu Umudioka


+ 发表回复

分页: 1 / 1