update page now
Longhorn PHP 2026 - Call For Papers

Voting

: eight plus one?
(Example: nine)

The Note You're Voting On

michael at squiloople dot com
10 years ago
It should be noted that the function_exists check is not relative to the root namespace. This means that the namespace should be appended to the check:

<?php

  namespace test;

  if (!function_exists(__NAMESPACE__ . '\example'))
  {

    function example()
    {

    }

  }

?>

<< Back to user notes page

To Top