Have you tried out PHP programming with all symbols defined as unicode

github logo Updated on ・1 min read

Here is one example using Devanagari:

class लगर
    const इन = 'इन्फो';

    public function लग(string $म, string $लवल)
        echo "[$लेवल] $मेसेज";

(new लगर)->लग('hello', लगर::इन);
twitter logo DISCUSS (10)
markdown guide

Just don't. Never.

It's a bad habit to use non-english names in any programming task. English is the standard and is clear on the naming convention.

Post censored because obviously stating that quality of code written by offshore developers is insulting, is racist.


dont worry i havent. no one has. or ever will. could you please edit your comment and remove the last paragraph (for reasons we all know)


You already did wrote such code. Above, in the post. And according to Murphys law, there will be an idiot, who will use non-ascii characters, as you proposed. It's irrelevant if it is your alphabet, russian bukhvas or those shitty slavic diacritics.

"trying out" and using for real stuffs is different, no?


Btw, it's been couple years since the name has changed, but T_PAAMAYIM_NEKUDOTAYIM is still the example of not treating the job seriously.


It's possible to use this for obfuscation, however, I'd use hashing. People can't reverse easily that way. Isn't that the whole point?

You wouldn't want some to reverse engineer your obfuscated code. So ... why not make it so they can't?


true i'll use this idea to my php encoder software haha thanks !

Classic DEV Post from Jan 29

The 7 Myths of Learning to Code

Learning to code products doesn't take as long as you think - more precisely, 300 hours to learn, build, and launch. Learn about the history and misconceptions of development preventing you from even starting and then hop on that tech bus.

Jitendra Adhikari profile image
Hello World!