How to check enabled PHP extensions

0 votes
With the help of code can you tell me How to check enabled PHP extensions?
Mar 11, 2025 in PHP by Ashutosh
• 33,370 points
• 1,776 views

1 answer to this question.

0 votes

You can check the enabled PHP extensions using the following methods:

1. Using phpinfo() (Displays all PHP configuration details)

phpinfo();

2. Using get_loaded_extensions() (Returns an array of enabled extensions)

print_r(get_loaded_extensions());

3. Using CLI Command

php -m

answered Mar 11, 2025 by Sanvi

Related Questions In PHP

0 votes
1 answer

How to check if php session is already started or not?

Hello kartik, Use session_id(), it returns an empty string ...READ MORE

answered Apr 1, 2020 in PHP by Niroj
• 82,800 points
• 8,952 views
0 votes
1 answer

How to check whether property exists in object or class in php?

Hello @kartik, Using  property_exists( mixed $class , string $property ...READ MORE

answered Oct 1, 2020 in PHP by Niroj
• 82,800 points
• 9,463 views
0 votes
1 answer

How to check if the request is an AJAX request with PHP?

Hello @kartik, Try below code snippet if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) ...READ MORE

answered Oct 29, 2020 in PHP by Niroj
• 82,800 points
• 16,512 views
0 votes
1 answer

How to Check for a Specific Type of Object in PHP

Hello @kartik, You can use instanceof: if ($pdo instanceof PDO) ...READ MORE

answered Oct 30, 2020 in PHP by Niroj
• 82,800 points
• 3,617 views
0 votes
1 answer
0 votes
1 answer

How to Center a Single-Column Div Within a 12-Column Container in Bootstrap 3?

Using Bootstrap's Offset Classes Bootstrap 3 provides offset ...READ MORE

answered Mar 11, 2025 in Node-js by Tanvi
• 1,112 views
0 votes
1 answer

Can't bind to 'formGroup' since it isn't a known property of 'form'?

The error Can't bind to 'formGroup' since ...READ MORE

answered Mar 11, 2025 in Java-Script by Tanvi
• 2,213 views
0 votes
1 answer

How to configure PHP with the Apache Web Server?

To configure PHP with the Apache Web ...READ MORE

answered Dec 17, 2024 in PHP by Navya
• 2,291 views
0 votes
1 answer

How to generate optimized source with and without sourcemap for production use?

To generate optimized source code with or ...READ MORE

answered Dec 31, 2024 in PHP by Navya
• 2,569 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP