Answers for "php if object"

PHP
0

php is object

is_object($var)
Posted by: Guest on June-19-2019
0

check if object has method php

<?php
$directory = new Directory('.');
var_dump(method_exists($directory,'read'));
?>
Posted by: Guest on July-06-2021

Browse Popular Code Answers by Language