浏览模式: 标准 | 列表2008年11月7日的文章
Submitted by gouki on 2008, November 7, 11:35 AM
图片附件(缩略图):
图片附件(缩略图):
Tags: zend, phpchina
Software | 评论:1
| 阅读:21229
Submitted by gouki on 2008, November 7, 11:32 AM
PHP代码
- <?php
-
- Class Aspire
- {
- private $outPut = '';
- static public function cin ( $str ){
- if( strToLower( $str ) == 'sweat'){
- self::$outPut = 'Gains';
- }else{
- self::$outPut = 'Without Something';
- }
- }
-
- static public function cout (){
- echo( self::$outPut );
- self::$outPut = NULL;
- }
- }
- Aspire::cin('sweat');
- Aspire::cout();
- Aspire::cin('laugh');
- Aspire::cout();
- ?>
Tags: php, class
PHP | 评论:2
| 阅读:20493