Menu
H
HomeA
AptitudeE
EnglishR
ReasoningD
DIG
GKC
Current AffairsI
Interview- Computer
C
Computer FundamentalsN
NetworkingS
SQLD
Database
- Programming
C
C ProgramJ
Java ProgramH
HTMLC
CSSJ
JavascriptP
PHP Program
- Engineering
C
Computer ScienceE
Electrical EngineeringM
Mechanical EngineeringC
Civil EngineeringC
Chemical Engineering
- More
B
Banking AwarenessC
CommerceM
Management
A
- Home
- Aptitude
- English
- Reasoning
- DI
- GK
- Current Affairs
- Interview
- Computer
- Computer Fundamentals
- Networking
- SQL
- Database
- Programming
- C Program
- Java Program
- HTML
- CSS
- Javascript
- PHP Program
- Engineering
- Computer Science
- Electrical Engineering
- Mechanical Engineering
- Civil Engineering
- Chemical Engineering
- More
- Banking Awareness
- Commerce
- Management
- Ask Question
Which one of the following PHP functions can be used to find files?
A. glob[]
B. file[]
C. fold[]
D. get_file[]
Answer: Option A
Solution[By Examveda Team]
Here is an example-
// get all php files AND txt files
$files = glob['*.{php,txt}', GLOB_BRACE];
print_r[$files];
/* output looks like:
Array
[
[0] => phptest.php
[1] => pi.php
[2] => post_output.php
.
.
.
]
Click here to read 1000+ Related Questions on Functions[PHP]
Join The Discussion
Related Questions on Functions
asked Jul 28, 2021 in PHP by [87.0k points]
Which one of the following PHP functions can be used to find files?
[a] glob[]
[b] file[]
[c] fold[]
[d] get_file[]
The question was asked in an international level competition.
My doubt is from In-Built Functions in PHP topic in division Arrays and Functions of PHP
1 Answer
Related questions
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
asked Jul 28, 2021 in PHP by Evelyn [87.0k points]
...