PHP Variable functions

// Define function name and string value variables $string = 'HELLO WORLD'; $function_name = 'strtolower'; // Check if function already exist and execute it print (function_exists($function_name)) ? $function_name($string) : "Function doesn't exists.";

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.