123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Technology,-Gadget-and-Science >> View Article

Can We Have Two Functions With The Same Name In Php?

Profile Picture
By Author: itechscripts
Total Articles: 457
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

Whether you can use two functions with one name depends on what type of function. If the function is global, then two functions with the same name cannot be created. If this is a local function then two functions of the same name can be used in a project. What is a global function? If you write a function on a page and include the same in every page of the project, it is called a global function. In that case two functions with one name cannot be declared. But if you use a function on a page and the functionality of that function is limited to that page only, it is called a local function. Local functions can be performed on two separate pages with the same name. In a word, two different functions with the same name can never be used in the same PHP page.

This article is sponsored by https://itechscripts.com/clone-scripts/. A leading resource of inspired clone scripts. It offers hundreds of popular scripts that are used by thousands of small and medium enterprises.

More About the Author

Ambit Technologies (P) Ltd. is a front-line full spectrum web and mobile development company providing result-oriented cost-effective solutions to enterprises - big, medium and small - spread across the world. It is also a reputed IT outsourcing solution provider having catered to customers spread across 78 countries of the world. Ambit Technologies (P) Ltd. strives to keep abreast of the latest of technologies and bring in innovative ideas constantly in the projects it undertakes.

Total Views: 483Word Count: 176See All articles From Author

Add Comment

Technology, Gadget and Science Articles

1. Why Silent Pods Are Essential For Modern Open-plan Offices?
Author: Silent Pod

2. Innovative Design, Unmatched Quiet: Explore Our New Pods
Author: Silent Pod

3. How Silent Pod Is Revolutionizing Workspaces In The Uae?
Author: Silent Pod

4. Discovering The Advantages Of Various Types Of Silent Pods
Author: Silent Pod

5. Drone Spraying: A Game Changer For Hard-to-reach Vineyards
Author: Alex Wilkinson

6. Comparative Analysis Of Glass Cloth Electrical Tape And Fiberglass Tape For Transformer Insulation
Author: jarod

7. Which Certification Is Best For A Java Full Stack Developer?
Author: Shankar Singh

8. Streamlining Operations With Heavy Equipment Tracking Solutions
Author: Asset Tracker

9. Why Choose Laravel : Explore Its Features & Benefits For Building Web Applications
Author: Rob Stephen

10. Why Your Business Needs An Inventory Management Software Solution
Author: nagaraj

11. What Thickness And Width Options Are Available For Polyimide Tape?
Author: jarod

12. Ứng Dụng Máy In Số Thứ Tự Trong Các điểm Giao Dịch Công
Author: xephangsmart

13. Navigating Challenges And Seizing Opportunities In Tech Development
Author: Yash Tamakuwala

14. Business Process Outsourcing Market Insights: The Impact Of Digital Marketing Strategies
Author: Grand View Research

15. Why Your Business Needs E-invoicing Software For Hassle-free Billing
Author: nagaraj

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: