在PHP中,我尝试使用foo() missing 1 required positional argument: 'self'
方法获取 [1] "NIU or no schooling" "NIU"
[3] "None or preschool" "Grades 1, 2, 3, or 4"
[5] "Grade 1" "Grade 2"
[7] "Grade 3" "Grade 4"
[9] "Grades 5 or 6" "Grade 5"
[11] "Grade 6" "Grades 7 or 8"
[13] "Grade 7" "Grade 8"
[15] "Grade 9" "Grade 10"
[17] "Grade 11" "Grade 12"
[19] "12th grade, no diploma" "12th grade, diploma unclear"
[21] "High school diploma or equivalent" "1 year of college"
[23] "Some college but no degree" "2 years of college"
[25] "Associate's degree, occupational/vocational program" "Associate's degree, academic program"
[27] "3 years of college" "4 years of college"
[29] "Bachelor's degree" "5+ years of college"
[31] "5 years of college" "6+ years of college"
[33] "Master's degree" "Professional school degree"
[35] "Doctorate degree" "Missing/Unknown"
中的所有目录。但是,我不断收到目录不存在的错误。
错误:scandir(C :):无法打开dir:没有这样的文件或目录
我的代码如下:
scandir()
问题可能是我的代码在SVN检出的目录中引起的吗?
答案 0 :(得分:0)
我认为你应该尝试这个例子:
$files1 = scandir("C:\\");
print_r($files1);
希望这有帮助,