PHP 5 → 4 converter
Pass object as references (using
special trick
)
Generate "require_once('
php4compat.php4
')" if needed
Source PHP 5 script:
<?php $obj = new MyObject; ... if ($obj instanceof MyObject) { ... }
Converted PHP 4 script:
(
download as file
)
<?php
$obj
=
new
MyObject; ...
if
(is_a(
$obj
, MyObject)) { ... }