Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6226475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:02:12+00:00 2026-05-24T09:02:12+00:00

I build a (so far) pretty nice templating mechanism for a cms. Now I

  • 0

I build a (so far) pretty nice templating mechanism for a cms. Now I also added a set of developer tools to the UI for a better UX during development. The only problem I’m left with is that I have to use create_function to add my templates, and therefore have lambda_xyz instead of meaningful template or function names.

Question: Is there a way/work around to give meaningful names to lambda functions in php?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:02:13+00:00Added an answer on May 24, 2026 at 9:02 am

    This reference might be able to point you in the right direction:
    http://php.net/manual/en/functions.anonymous.php


    Anonymous functions require PHP 5 >= 5.3.0

    $function_name = 'meaningful_name';
    
    // PHP 5 >= 5.3.0
    $$function_name = function(){echo "I am connected to a meaningful name";}; 
    
    // PHP 4 >= 4.0.1, PHP 5
    $$function_name = create_function('', 'echo "I am connected to a meaningful name";');
    
    // Then you can call your function like this
    $meaningful_name();
    

    If this isn’t what you are looking for, can you update your question with what you are trying to accomplish in more detail?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

MSBuild 3.5 I have the following project structure: trunk/MainSolution.sln trunk/Build/MyBuild.Proj trunk/Library/... trunk/etc... So far,
I recently had to build an app which was pretty big (just under 180mb)
I want to have pretty and SEO oriented URLs in my site. I've build
Background: I'm a web developer looking to expand my skill set a bit with
I'd like to build a CMS site based on Asp.Net Mvc and I want
My goal is pretty simple: to use ant to build an EAR which contains
I have thus far built an Editor and a Viewer that both work on
So far I've only built small graphical applications, using swing and JComponents as I
So, I've built this navigation bar so far and I'm curious if it's even
We are trying to integrate tests in our daily builds using TestComplete, so far

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.