Rename internal PHP command

A quick simple question for the guys ...

Is it possible to rename INTERNAL php commands?

For example:

instead

echo '123';

      

I can write this:

ScreenDisplay '123';

      

another example:

instad of:

if () {}

      

I can write this:

myCondition () {}

      

Thank!

+3


source to share


2 answers


You need to write a parser for php, which is a silly idea, or implement a php extension module in C ++. http://www.sitepoint.com/getting-started-php-extension-development-via-php-cpp/



There is Typo3 CMS that comes with a custum script language called Typo3Script, which is parsed and executed as php. http://docs.typo3.org/typo3cms/TyposcriptIn45MinutesTutorial/ You can try reusing this for your custom script language or whatever you are trying to do. However, I think that implementing another script language inside php is a silly idea in and of itself.

+1


source


Go here if you get any help here PHP Rename Functions and here PHP Rename



+1


source







All Articles