开发者

Is it possible to write a Windows console application using PHP?

开发者 https://www.devze.com 2023-03-04 12:53 出处:网络
I\'m 开发者_开发百科going to build a big library for my PHP website.Yes. Simple Example : <?php

I'm 开发者_开发百科going to build a big library for my PHP website.


Yes.

Simple Example :

<?php
echo $argc."\n";
print_r($argv);
?>

Result :

Is it possible to write a Windows console application using PHP?


Of course, yes, it is possible to write a windows console application using PHP. Or any other language, for that matter.

However, if you want to "build a big library", I suggest instead writing a useful set of libraries. In that case, I would consider the "windows console application" as a test runner, to execute your tests that ensure that your "big library" works as intended.

0

精彩评论

暂无评论...
验证码 换一张
取 消