Home > Backend Development > PHP Tutorial > A simple example of PHP data flow application_PHP tutorial

A simple example of PHP data flow application_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 17:51:43
Original
973 people have browsed it

1  2 $count = 5;
 3 start:
 4 if($count < 5) echo "You can try {$count} time, ";
 5 echo "Put Password: ";
 6 $handle = fopen ("php://stdin","r");
 7 $line = fgets($handle);
 8 if(trim($line) != '123456'){
 9     $count--;
10     if(!$count) goto error;
11     goto start;
12 }
13 goto success;
14 error:
15     echo "Please try after 1 hour! http://www.fanlishuqian.com";
16     goto out;
17 success:
18     echo "Logined!";
19 out:
20 ?>
执行结果:

 

 


摘自 专注web技术

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/478181.htmlTechArticle1 ?php 2 $count = 5; 3 start: 4 if($count 5) echo You can try {$count} time, ; 5 echo Put Password: ; 6 $handle = fopen (php://stdin,r); 7 $line = fgets($handle); 8 if(trim($line)...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template