In PHP, how do I check if a function exists?

How can I check if the function my_function already exists in PHP?

Answers


Using function_exists:

if(function_exists('my_function')){
    // my_function is defined
}

Need Your Help

How to click a link in WebDriver using Python?

python webdriver selenium-chromedriver

<tr><td class=wb><a href="javascript:void(fight())" style='text-decoration:none'><b>Click here!</a></td></tr>

MX Record lookup and check

python mx-record

I need to create a tool that will check a domains live mx records against what should be expected (we have had issues with some of our staff fiddling with them and causing all incoming mail to redi...

Ninject.Web.MVC + MVC3 throws StackOverflowException

c# asp.net-mvc ninject asp.net-mvc-3

I've got a simple web application using ASP.NET MVC3 and Ninject.Web.MVC (the MVC3 version).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.