Make PHP contain PHP

Source: Internet
Author: User
With this code, I can output HelloWorld when the category ID is 9? Phpif (is_category (9) {echoHelloWorld ;}? Next, I want to output a list of articles when classification is 9 :? Phpif (is_category (9 )){?? Php $ postsget_posts (showposts15

With this code, I can output Hello World when the category ID is 9? Php if (is_category (9) {echo 'Hello world ';}? Next, I want to output a list of articles when classification is 9 :? Php if (is_category (9 )){? ? Php $ posts = get_posts ('showposts = 15

With this code, I can output Hello World when the category ID is 9.

If (is_category (9 )){
Echo 'Hello world ';
}
?>

Next, I want to output a list of articles when the category is 9:

If (is_category (9 )){
?>



  • '>




}
?>

Use {and Just take the notes and forget them.

Related logs:
  • PhpMyadmin File Upload restrictions
  • Modify text in iframe across domains
  • Use bookmarks to query website prvalues
  • Development of PageCookery favorites System
  • Js Code running like php
  • Visual SVN implements local code version control
  • PHP 5.3.0 official release

Original article address: Let PHP Include PHP. Thank you for sharing it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.