International PHP Conference Munich 2025

Voting

: min(eight, one)?
(Example: nine)

The Note You're Voting On

michael at squiloople dot com
9 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