Home >Backend Development >PHP Tutorial > 这是什么意思?解决办法

这是什么意思?解决办法

WBOY
WBOYOriginal
2016-06-13 13:53:26809browse

这是什么意思?

Zend::loadClass('Zend_Controller_Action');

class IndexController extends Zend_Controller_Action 
{
public function indexAction()
{
  echo 'IndexController::indexAction()';
}
}

?>

其中”Zend::loadClass('Zend_Controller_Action');“中的四个点是什么意思?
并说明详细用法!

------解决方案--------------------
就是不用实例化的调用类中的函数

PHP code

<?php class MyTest{
    function showinfo($msg){
        print "output: ". $msg;
    }
}

echo MyTest::showinfo("hello");
?> <div class="clear">
                 
              
              
        
            </div>
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