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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: moonlightcheese at gmail dot com
New email:
PHP Version: OS:

 

 [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-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 21 21:03:37 2022 UTC