我在头文件中创建一个项目数组,这个项目将在WordPress模板的索引文件中调用。但是,由于某种原因,我得到: Notice: Undefined variable: img_arr in ... on line 27
为什么会出现这种情况时,在我的头,我定义它: $img_arr = array();
$caption_arr = array();
// Second Feat
我使用php $GLOBALS变量时出现问题。 我有一个名为PostController的类: class postController
{
public function Start()
{
switch($GLOBALS["Action"])
{
case "404":
require_once(blog("root"