Edit report at https://bugs.php.net/bug.php?id=70222&edit=1
ID: 70222
Updated by: requinix@php.net
Reported by: tux at vmail dot me
Summary: Alias of function as func
-Status: Open
+Status: Feedback
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Why? What are the tangible benefits to doing this, besides saving four keystrokes? What problem does
it solve? What will happen to the people who already use "func" for names?
Previous Comments:
------------------------------------------------------------------------
[2015-08-09 17:15:42] tux at vmail dot me
Description:
------------
Can we please have alias of "function" as "func". Note this request is NOT to
replace "function" word, but to allow also to use alias of it as in "func".
Function Name Now:
function test($str) { return trim($str); }
Function Name Wanted:
func test($str) { return trim($str); }
Test script:
---------------
n/a
Expected result:
----------------
n/a
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70222&edit=1