Home  >  Article  >  Backend Development  >  PHP Chinese cultural programming (ideas)

PHP Chinese cultural programming (ideas)

WBOY
WBOYOriginal
2016-07-25 09:06:031239browse
PHP Chinese cultural programming (ideas)Actually, all the functions are packaged in Chinese. Isn’t it quite fun?
http://blog.qita.in
  1. /**
  2. * http://blog.qita.in
  3. * @copyright 2012
  4. */
  5. function output($string){
  6. echo $string;
  7. }
  8. function set header($string){
  9. header($ String);
  10. }
  11. abstract class main frame{
  12. }
  13. class program extends main frame{
  14. public function run(){
  15. set header('http-equiv="Content-Type" content="text/html; charset=utf-8"');
  16. output('Is this a Chinese program? Isn't it fun?');
  17. }
  18. }
  19. $program = new program;
  20. $program->run();
  21. ?>
Copy code


Statement:
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