PHP Velho Oeste 2024

zend_version

(PHP 4, PHP 5, PHP 7, PHP 8)

zend_version現在の Zend Engine のバージョンを取得する

説明

zend_version(): string

現在実行中の Zend Engine のバージョンを含む文字列を返します。

パラメータ

この関数にはパラメータはありません。

戻り値

Zend Engine のバージョン番号を文字列で返します。

例1 zend_version() の例

<?php
echo "Zend engine version: " . zend_version();
?>

上の例の出力は、 たとえば以下のようになります。

Zend engine version: 2.2.0

参考

  • phpinfo() - PHP の設定情報を出力する
  • phpcredits() - PHP に関するクレジットを出力する
  • phpversion() - 現在の PHP バージョンを取得する

add a note add a note

User Contributed Notes 1 note

up
0
joyven dot zhou at weimob dot com
8 years ago
if(function_exists('zend_thread_id')){
    $thread_id = zend_thread_id();
    echo 'Current thread id is: ' . $thread_id;
}else{
    echo 'Zend non-thread safe';
}
To Top