php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48810 Variable Function Request
Submitted: 2009-07-05 20:38 UTC Modified: 2009-11-20 10:42 UTC
From: moonlightcheese at gmail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.10 OS: Ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 + 6 = ?
Subscribe to this entry?

 
 [2009-07-05 20:38 UTC] moonlightcheese at gmail dot com
Description:
------------
the use of constructs would be nice.  i don't see a reason why i shouldn't be able to do something like this:

$db_prefix="mysql_";
$conn_func=$db_prefix."connect";

$conn_func('localhost','example','password');

having to build wrapper functions for every construct i want to use within a class bloats the code and makes things less manageable.

Reproduce code:
---------------
---
From manual page: functions.variable-functions
---



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-20 10:40 UTC] a at b dot c dot de
Uh, you can already do that....
 [2009-11-20 10:42 UTC] pajoye@php.net
Read the PHP Manual please.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 07:01:29 2024 UTC