Hack 语言学习/参考---1.Hack 语言
作者:互联网
原文链接:http://www.cnblogs.com/Jack8Chen/p/3620786.html
Table of Contents
Table of Contents
Hack is a language for HHVM that interopates seamlessly with PHP. HHVM supports both Hack and PHP; code can be run on HHVM in either language or even a mixture of both.
To get started with Hack, it really is as simple as:
-
Use <?hh at the top of your file; you can also change <?php to <?hh in existing PHP files, and your code will run just as before in HHVM.
-
Optionally name your file with the .hh extension to distingusih your Hack files from your PHP files. Of course, you can keep the name of the file .php (or any other extension that you use)
-
Optionally start using Hack features
转载于:https://www.cnblogs.com/Jack8Chen/p/3620786.html
标签:www,PHP,语言,参考,file,Hack,HHVM,your 来源: https://blog.csdn.net/weixin_30466421/article/details/98178031