<?php
str phpversion ( str $extension = ? )
where,
$extension = Extension name
?>
<?php
echo 'PHP version: ' . phpversion();
// PHP extension versioning
?>
<?php
echo 'PHAR extension version: ' . phpversion('phar');
// PHAR extension versioning
?>
<style>
td { text-align:center; }
</style>
<table width="100%" cellspacing="3" cellpadding="3"
border="1" align="center">
<tbody><tr><td colspan="3">AVAILABLE EXTENSIONS</td></tr>
<tr><td>Index</td><td>NAME</td><td>VERSION</td></tr>
<?php
// This exercise displays
// the name and version of all the loaded extension.
// The result of this exercise
// may be different for you
$exts = get_loaded_extensions ();
$i = 0;
foreach ( $exts as $xt)
{
$exts03 = phpversion ($xt);
echo '<tr><td>'. $i++ . '</td><td>' . $xt . '</td><td>' . $exts03 . '</td></tr>';
}
?>
<tr><td colspan="3">ed48</td></tr></tbody></table>