Use the call_user_func function:
http://php.net/manual/en/function.call-user-func.php
Example:
call_user_func('myClassName_' . $language . '::myFunctionName');
More Related Contents:
- PHP Fatal error: Using $this when not in object context
- Autoloader for functions
- Can I use PHP reserved names for my functions and classes?
- What’s difference between __construct and function with same name as class has? [duplicate]
- Get all instances of a class in PHP
- Calling a function within a Class method?
- When to use a Class vs. Function in PHP
- How to set php class attribute?
- how to make a function that validates fields in a form? php [closed]
- When should I use ‘self’ over ‘$this’?
- How to properly set up a PDO connection
- Using braces with dynamic variable names in PHP
- What does the variable $this mean in PHP?
- Giving my function access to outside variable
- Can I extend a class using more than 1 class in PHP?
- PHP mail function doesn’t complete sending of e-mail
- Best practice on PHP singleton classes [duplicate]
- instantiate a class from a variable in PHP?
- In php, is 0 treated as empty?
- Can you store a function in a PHP array?
- Accessing a class constant using a simple variable which contains the name of the constant
- How can I access a property with an invalid name?
- Initializing PHP class property declarations with simple expressions yields syntax error
- PHP OOP core framework
- `static` keyword inside function?
- PHP Default Function Parameter values, how to ‘pass default value’ for ‘not last’ parameters?
- WooCommerce: Add product to cart with price override?
- Shorten long numbers to K/M/B?
- Finding the PHP File (at run time) where a Class was Defined
- calling function inside preg_replace thats inside a function