The calling method is as follows: The DebugStr function is similar to an echo.
Copy code The code is as follows:
DebugStr('$Adv->getContentById($id); $id is advertising number, only one call is made, and the returned content is a string'); echo Adv::getContentById(35); DebugStr('$Adv->getContentByIdJS($id); $id is the advertisement number, only Call one and the returned content is a JS string'); echo Adv::getContentByIdJS(35); DebugStr('$Adv->getContentByOrder($id); $id is the advertisement number, only call ID One in reverse order, the returned content is a string'); echo Adv::getContentByOrder(4); DebugStr('$Adv->getContentByOrderJS($id); $id is the advertisement number, only call ID reverse order One, the returned content is a JS string'); echo Adv::getContentByOrderJS(4); echo ''; 🎜>
'; }else{ //图片广告 $ReturnContent = ''; } //If calling JS if(self::$JS){ $ReturnContent = 'document.write("'.addslashes($ReturnContent).'");'; } //Reset the default value, here we still use the singleton mode self::$Id = 0; self::$Order = 0; self::$JS = 0 ; return $ReturnContent; } } ?>
http://www.bkjia.com/PHPjc/324181.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324181.htmlTechArticleThe calling method is as follows: The DebugStr function is similar to an echo. Copy the code The code is as follows: DebugStr('$Adv-getContentById($id); $id is the advertisement number, only one call is made, and the content is returned...
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