<?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();
?>

评论 (0)
暂无评论