PHPã®ãããã¯ä½ãããrequireãæã ã¨æãã requireæã¯ãããããå¤é¨ã®phpãincludeããå½ä»¤ã§ãããPHPã®requireæã¯ããã®å½ä»¤ããå®è¡ãã段éãããphpãã¡ã¤ã«ãincludeãããä½é£ãã¬é¡ããã¦ããããå¤æ°ãå¼ãç¶ãã ã¾ã¾ãincludeå ã®phpã³ã¼ãã®ç¶ãã¨ãã¦å®è¡ãããã éã«è¨ãã¨ãrequireæããå®è¡ããªããã°ãã½ã¼ã¹ã³ã¼ãä¸ã«æ¸ãããincludeå ã®ã³ã¼ããå¼ã³åºããããã¨ã¯ãªãã ããæå¼·ã ã¨æããã ããä»ã®è¨èªã§ã¯ã©ããªãã ããã MVCã¢ãã«ã§è¨ãã³ã³ããã¼ã©ã¼ãä½ããããã°ã switch ãï¼åå²ç¨å¤æ°ï¼ case æ¡ä»¶ï¼: require "æ¡ä»¶ï¼ã®PHP"; break; case æ¡ä»¶2: require "æ¡ä»¶2ã®PHP"; break; ã» ã» ã» æä½éã®ãã®ãªãããã£ããããã ãã§çµããããªããªããããã ã
{{#tags}}- {{label}}
{{/tags}}