Skip to content

phpversion #2381

@janhanacek1

Description

@janhanacek1

Description

Function phpversion with extension parameter.

By documentation.
Returns the current PHP version as a string. If a string argument is provided for extension parameter, phpversion() returns the version of that extension, or false if there is no version information associated or the extension isn't enabled.

The following code:

<?php

echo phpversion( 'intl' ); // any extension returns php version instead

Resulted in this output:

8.2.2

But I expected this output instead:

// version of extension

PHP Version

php 8.2

Operating System

Debian 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions