Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classobj sync with EN #2054

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion reference/classobj/functions/is-a.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: fd65805e83f7dc3b12ab5844cafc4489dc367a27 Maintainer: yannick Status: ready -->
<!-- EN-Revision: c558c3af38874a913c7515bbd49aaf2e689cbdd0 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes Maintainer: pmartin -->
<refentry xml:id="function.is-a" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -91,6 +91,16 @@ if (is_a($WF, 'WidgetFactory')) {
<programlisting role="php">
<![CDATA[
<?php

// définir une classe
class WidgetFactory
{
var $oink = 'moo';
}

// créer un nouvel objet
$WF = new WidgetFactory();

if ($WF instanceof WidgetFactory) {
echo 'Oui, $WF est un WidgetFactory';
}
Expand Down
Loading