Jump to content

[SOLVED] Test if function already declared?


sandozlabz

Recommended Posts

Give this a try: function_exists()

<?php
if(!function_exists(myFunctionName))
{
   function myFunctionName(myVar1, myVar2)
    {
       ...
     }
 }
?>

More info here: http://www.php.net/manual/en/function.function-exists.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.