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
 [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

Pull Requests

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: Sun Dec 22 06:01:30 2024 UTC